Commit 7ed77f06 authored by Rayan  CHIKHI's avatar Rayan CHIKHI
Browse files

missing file

parent cbe6e410
......@@ -189,21 +189,23 @@ Resources:
# make /tmp usable by everyone
chmod 777 /mnt/tmp_ext
service docker stop
# copy the docker directory to the ephemeral storage
rsync -avPHSX /var/lib/docker/ /mnt/docker_ext/
# set the data directory to the ephemeral storage in the config file of the docker deamon
DOCKER_CFG_FILE=/etc/docker/daemon.json
if [ ! -e "${!DOCKER_CFG_FILE}" ]; then
# need to create a non empty file for sed to work
echo "{" > ${!DOCKER_CFG_FILE}
else
# replace the last } of the file by a ,
sed -i s/}$/,/ ${!DOCKER_CFG_FILE}
fi
sed -i '$ a "data-root": "/mnt/docker_ext/"' ${!DOCKER_CFG_FILE}
sed -i '$ a }' ${!DOCKER_CFG_FILE}
service docker start
# Rayan: this makes the local drive go out of space, so I removed it and let's see
#
#service docker stop
## copy the docker directory to the ephemeral storage
#rsync -avPHSX /var/lib/docker/ /mnt/docker_ext/
## set the data directory to the ephemeral storage in the config file of the docker deamon
#DOCKER_CFG_FILE=/etc/docker/daemon.json
#if [ ! -e "${!DOCKER_CFG_FILE}" ]; then
# # need to create a non empty file for sed to work
# echo "{" > ${!DOCKER_CFG_FILE}
#else
# # replace the last } of the file by a ,
# sed -i s/}$/,/ ${!DOCKER_CFG_FILE}
#fi
#sed -i '$ a "data-root": "/mnt/docker_ext/"' ${!DOCKER_CFG_FILE}
#sed -i '$ a }' ${!DOCKER_CFG_FILE}
#service docker start
--==MYBOUNDARY==--
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment