docker服务启动永远在Debian上激活

我尝试在我的debian vm上设置docker。 在弄清楚如何让docker读取默认/ docker文件后,我遇到了一个启动的问题,实际上是在我configuration的端口上。 但是这并没有完成启动过程。

操作系统细节

PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" 

/ etc / default / docker

 DOCKER_OPTS="-H tcp://127.0.0.1:2375" 

docker.service

 [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com After=network-online.target docker.socket firewalld.service Wants=network-online.target Requires=docker.socket [Service] Type=notify # the default is not to use systemd for cgroups because the delegate issues still # exists and systemd currently does not support the cgroup feature set required # for containers run by docker EnvironmentFile=-/etc/default/docker ExecStart=/usr/bin/docker -d $DOCKER_OPTS -H fd:// ExecReload=/bin/kill -s HUP $MAINPID LimitNOFILE=1048576 # Having non-zero Limit*s causes performance problems due to accounting overhead # in the kernel. We recommend using cgroups to do container-local accounting. LimitNPROC=infinity LimitCORE=infinity # Uncomment TasksMax if your systemd version supports it. # Only systemd 226 and above support this version. #TasksMax=infinity TimeoutStartSec=0 # set delegate yes so that systemd does not reset the cgroups of docker containers Delegate=yes # kill only the docker process, not all processes in the cgroup KillMode=process # restart the docker process if it exits prematurely Restart=on-failure StartLimitBurst=3 StartLimitInterval=60s [Install] WantedBy=multi-user.target 

服务docker状态

 ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: activating (start) since Tue 2017-08-29 13:51:04 CEST; 15min ago Docs: https://docs.docker.com Main PID: 883 (docker) Tasks: 3 (limit: 4915) Memory: 4.2M CPU: 10ms CGroup: /system.slice/docker.service └─883 /usr/bin/docker -d -H tcp://127.0.0.1:2375 -H fd:// 

正如你可以看到它现在运行了15分钟 ,我不知道这里的问题是什么。