Ensure /etc/docker directory available before touch.
This commit is contained in:
parent
af1ef53938
commit
c45eebbb38
|
|
@ -25,6 +25,7 @@ bash -c 'sed -i "s|DOCKER_OPTS=\"\(.*\)\"|DOCKER_OPTS=\"\1 --ipv6\"|" /etc/defau
|
||||||
# For other options:
|
# For other options:
|
||||||
# https://github.com/moby/moby/pull/23657/files?short_path=ca4f406
|
# https://github.com/moby/moby/pull/23657/files?short_path=ca4f406
|
||||||
# https://gist.github.com/lvdh/1f2d50ad49274413d3e501b71a59e819
|
# https://gist.github.com/lvdh/1f2d50ad49274413d3e501b71a59e819
|
||||||
|
mkdir -p /etc/docker
|
||||||
if [ ! -f /etc/docker/daemon.json ]
|
if [ ! -f /etc/docker/daemon.json ]
|
||||||
then
|
then
|
||||||
touch /etc/docker/daemon.json
|
touch /etc/docker/daemon.json
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue