Docker Community Forums

Share and learn in the Docker community.

Docker Remote Server Failed

docker

(Worlddocker) #1

Hello Guys,

OS: RedHat 7
Version: 18.06.0-ce
API version: 1.38

I have a problem with the remote Server function for docker.
I have edit the docker.service File under :

/usr/lib/systemd/system/docker.service

Here i have add the line :

ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376

My complete File :

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target

[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
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376
ExecReload=/bin/kill -s HUP $MAINPID
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=infinity
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

Now i become the following error after i reload and restart the docker.service :

‚óŹ docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor pres                                                                                                                                                             et: disabled)
   Active: failed (Result: start-limit) since Thu 2018-08-02 02:59:54 MDT; 5s ag                                                                                                                                                             o
     Docs: https://docs.docker.com
  Process: 54650 ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376 (code                                                                                                                                                             =exited, status=1/FAILURE)
 Main PID: 54650 (code=exited, status=1/FAILURE)

systemd[1]: docker.service: main process exited...E
systemd[1]: Failed to start Docker Application ....
systemd[1]: Unit docker.service entered failed ....
systemd[1]: docker.service failed.
systemd[1]: docker.service holdoff time over, s....
systemd[1]: start request repeated too quickly ...e
systemd[1]: Failed to start Docker Application ....
systemd[1]: Unit docker.service entered failed ....
systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.