diff options
Diffstat (limited to 'import-layers/meta-virtualization/recipes-containers/docker/files/docker.init')
-rw-r--r-- | import-layers/meta-virtualization/recipes-containers/docker/files/docker.init | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/import-layers/meta-virtualization/recipes-containers/docker/files/docker.init b/import-layers/meta-virtualization/recipes-containers/docker/files/docker.init index 2e8eb9e40a..9c01c7581a 100644 --- a/import-layers/meta-virtualization/recipes-containers/docker/files/docker.init +++ b/import-layers/meta-virtualization/recipes-containers/docker/files/docker.init @@ -28,7 +28,6 @@ exec="/usr/bin/$prog" pidfile="/var/run/$prog.pid" lockfile="/var/lock/subsys/$prog" logfile="/var/log/$prog" -other_args="--registry-mirror=http://localhost:5000 --insecure-registry=http://localhost:5000 --raw-logs" [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog @@ -39,8 +38,8 @@ start() { if ! [ -f $pidfile ]; then printf "Starting $prog:\t" - echo -e "\n$(date)\n" >> $logfile - "$unshare" -m -- $exec daemon $other_args &>> $logfile & + echo "\n$(date)\n" >> $logfile + "$unshare" -m -- $exec -d $other_args &>> $logfile & pid=$! touch $lockfile # wait up to 10 seconds for the pidfile to exist. see |