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

missing file

parent cbe6e410
...@@ -189,21 +189,23 @@ Resources: ...@@ -189,21 +189,23 @@ Resources:
# make /tmp usable by everyone # make /tmp usable by everyone
chmod 777 /mnt/tmp_ext chmod 777 /mnt/tmp_ext
service docker stop # Rayan: this makes the local drive go out of space, so I removed it and let's see
# copy the docker directory to the ephemeral storage #
rsync -avPHSX /var/lib/docker/ /mnt/docker_ext/ #service docker stop
# set the data directory to the ephemeral storage in the config file of the docker deamon ## copy the docker directory to the ephemeral storage
DOCKER_CFG_FILE=/etc/docker/daemon.json #rsync -avPHSX /var/lib/docker/ /mnt/docker_ext/
if [ ! -e "${!DOCKER_CFG_FILE}" ]; then ## set the data directory to the ephemeral storage in the config file of the docker deamon
# need to create a non empty file for sed to work #DOCKER_CFG_FILE=/etc/docker/daemon.json
echo "{" > ${!DOCKER_CFG_FILE} #if [ ! -e "${!DOCKER_CFG_FILE}" ]; then
else # # need to create a non empty file for sed to work
# replace the last } of the file by a , # echo "{" > ${!DOCKER_CFG_FILE}
sed -i s/}$/,/ ${!DOCKER_CFG_FILE} #else
fi # # replace the last } of the file by a ,
sed -i '$ a "data-root": "/mnt/docker_ext/"' ${!DOCKER_CFG_FILE} # sed -i s/}$/,/ ${!DOCKER_CFG_FILE}
sed -i '$ a }' ${!DOCKER_CFG_FILE} #fi
service docker start #sed -i '$ a "data-root": "/mnt/docker_ext/"' ${!DOCKER_CFG_FILE}
#sed -i '$ a }' ${!DOCKER_CFG_FILE}
#service docker start
--==MYBOUNDARY==-- --==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