"Error response from daemon: service endpoint with name es already exists" when starting containerΒ #20398
Closed
Description
Hey guys,
I have a lot of containers that use the unless-stopped policy and after a daemon restart for testing that all works fine, somehow for the es
container I got the error from the title... There is just one container that is named es
...
I wanted to start it manually, but got the same error... this should have worked as it's the same container that the message complaints about.
Here is some more info:
$ sudo docker info
Containers: 20
Running: 12
Paused: 0
Stopped: 8
Images: 1069
Server Version: 1.10.1
Storage Driver: overlay
Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: null host overlay bridge
Kernel Version: 4.3.0-040300-generic
Operating System: Ubuntu 14.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.16 GiB
Name: seb
ID: 3IIK:AWIX:PLOR:BPQ4:XNEL:SSXQ:2GUL:VEKX:OVCQ:SCCX:MN2U:DTWH
WARNING: No swap limit support
Cluster store: consul://localhost:8500
Cluster advertise: 192.168.123.18:2375
$ sudo docker version
Client:
Version: 1.10.1
API version: 1.22
Go version: go1.5.3
Git commit: 9e83765
Built: Thu Feb 11 19:27:08 2016
OS/Arch: linux/amd64
Server:
Version: 1.10.1
API version: 1.22
Go version: go1.5.3
Git commit: 9e83765
Built: Thu Feb 11 19:27:08 2016
OS/Arch: linux/amd64
$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7e63bf3754b0 hgdata1/focus:297f50a8ec59 "/bin/sh -c ./trap.sh" 18 minutes ago Up 16 minutes 8020/tcp focus-v7
35828cac56ea f06503660e96 "bash" 21 minutes ago Exited (130) 9 minutes ago small_curie
5bf6295f7c69 hgdata1/elastalert:b846d3461eb1 "./trap.sh" 47 minutes ago Up 43 minutes elastalert
20b45a285e46 hgdata1/beats:b846d3461eb1 "./trap.sh" 47 minutes ago Restarting (7) 14 minutes ago httpd-beat-packet
8765d32780c2 hgdata1/beats:b846d3461eb1 "./trap.sh" 47 minutes ago Restarting (7) 14 minutes ago mysql-beat-packet
df39c284be48 hgdata1/beats:b846d3461eb1 "./trap.sh" 47 minutes ago Restarting (7) 14 minutes ago beat-topbeat_httpd_bearfist
bc9e517f4e57 hgdata1/ui:88a1a097c407 "./trap.sh" About an hour ago Up 43 minutes 8000/tcp admin-a1
550953ac7e21 hgdata1/ui:88a1a097c407 "./trap.sh" About an hour ago Exited (0) About an hour ago admin-a1_previous_2
afe6d33b92ba f06503660e96 "/bin/sh -c ./trap.sh" About an hour ago Exited (0) 18 minutes ago focus-v7_previous_2
276bf2f70b31 hgdata1/kibana:a99520a05c03 "./trap.sh" About an hour ago Up 43 minutes 5601/tcp kibana
883d813cb85e hgdata1/logstash:a99520a05c03 "./trap.sh" About an hour ago Up 43 minutes logstash
62fbfcdb9b70 hgdata1/elasticsearch:a99520a05c03 "./trap.sh" About an hour ago Exited (128) 45 minutes ago es
0e982a0ba0e3 hgdata1/ldap_bearfist:16a8e5192c02 "./trap.sh" About an hour ago Up 43 minutes ldap-bearfist-v7
db2607fda9d8 hgdata1/api:16a8e5192c02 "./trap.sh" About an hour ago Up 43 minutes api-bearfist-v7
62742daaba39 hgdata1/persistence:16a8e5192c02 "/bin/sh -c 'sudo /tr" About an hour ago Up 43 minutes 3306/tcp db-bearfist-v7
433a6f77f1da hgdata1/httpd:16a8e5192c02 "./trap.sh" About an hour ago Up 43 minutes 0.0.0.0:443->443/tcp httpd
e4a758e6f86a hgdata1/ldap_admin:16a8e5192c02 "./trap.sh" About an hour ago Up 43 minutes ldap-admin-a1
e60803dcbb63 hgdata1/api:16a8e5192c02 "./trap.sh" About an hour ago Up 43 minutes api-admin-a1
4bcb5c831d03 hgdata1/api:16a8e5192c02 "./trap.sh" About an hour ago Up 43 minutes api-ops-o1
892a71544263 hgdata1/modsecurity:60be76623f1f "./trap.sh" About an hour ago Exited (0) About an hour ago modsecurity
$ sudo docker inspect es
[
{
"Id": "62fbfcdb9b7000113391d5a5427ae90b37b0c54252ff5c05a4dc2d9b0e4d4447",
"Created": "2016-02-17T13:24:50.575290212Z",
"Path": "./trap.sh",
"Args": [],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 128,
"Error": "service endpoint with name es already exists",
"StartedAt": "2016-02-17T13:44:29.646211683Z",
"FinishedAt": "2016-02-17T14:11:26.649051684Z"
},
"Image": "sha256:820bc8ede34a6d1d657188b28a3ab1ea9eedc248e94747ed001dc2d5c2caf18b",
"ResolvConfPath": "/home/seb/hgdata/deployments/docker/containers/62fbfcdb9b7000113391d5a5427ae90b37b0c54252ff5c05a4dc2d9b0e4d4447/resolv.conf",
"HostnamePath": "/home/seb/hgdata/deployments/docker/containers/62fbfcdb9b7000113391d5a5427ae90b37b0c54252ff5c05a4dc2d9b0e4d4447/hostname",
"HostsPath": "/home/seb/hgdata/deployments/docker/containers/62fbfcdb9b7000113391d5a5427ae90b37b0c54252ff5c05a4dc2d9b0e4d4447/hosts",
"LogPath": "/home/seb/hgdata/deployments/docker/containers/62fbfcdb9b7000113391d5a5427ae90b37b0c54252ff5c05a4dc2d9b0e4d4447/62fbfcdb9b7000113391d5a5427ae90b37b0c54252ff5c05a4dc2d9b0e4d4447-json.log",
"Name": "/es",
"RestartCount": 0,
"Driver": "overlay",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/home/seb/hgdata/deployments/elk/elasticsearch:/home/elasticsearch:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "backbone2",
"PortBindings": null,
"RestartPolicy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"VolumeDriver": "",
"VolumesFrom": [],
"CapAdd": null,
"CapDrop": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"ShmSize": 67108864,
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"KernelMemory": 0,
"Memory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": -1,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null
},
"GraphDriver": {
"Name": "overlay",
"Data": {
"LowerDir": "/home/seb/hgdata/deployments/docker/overlay/e9bcae64c4da4f3d74006d6795801044340461f3479ef6af1e2dddf2af1b4404/root",
"MergedDir": "/home/seb/hgdata/deployments/docker/overlay/0a92bf5594a6701a2557a9e39585ecbc337fd04326c2935b73edb91e2086c2dd/merged",
"UpperDir": "/home/seb/hgdata/deployments/docker/overlay/0a92bf5594a6701a2557a9e39585ecbc337fd04326c2935b73edb91e2086c2dd/upper",
"WorkDir": "/home/seb/hgdata/deployments/docker/overlay/0a92bf5594a6701a2557a9e39585ecbc337fd04326c2935b73edb91e2086c2dd/work"
}
},
"Mounts": [
{
"Source": "/home/seb/hgdata/deployments/elk/elasticsearch",
"Destination": "/home/elasticsearch",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "62fbfcdb9b70",
"Domainname": "",
"User": "elasticsearch",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"9200/tcp": {},
"9300/tcp": {}
},
"Tty": true,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"./trap.sh"
],
"Image": "hgdata1/elasticsearch:a99520a05c03",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "7bca83422a8c4d24e9eb786262bd0368802dd3f2693343d0431ffaeb1614f098",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": null,
"SandboxKey": "/var/run/docker/netns/7bca83422a8c",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"backbone2": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "38a2aa06eb3bae5f48b988f7a9cf7950b5cc6798243554da1f38b5f53b9fcffd",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": ""
},
"bridge": {
"IPAMConfig": {},
"Links": null,
"Aliases": null,
"NetworkID": "0df17fcb288d7a4e9b77815f78388dfa494f16b35dffeb38122f92220bc61a99",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": ""
}
}
}
}
]
$ sudo docker start es
Error response from daemon: service endpoint with name es already exists
Error: failed to start containers: es
Activity