Skip to content

docker network connect does not show readable error message #29726

@allencloud

Description

@allencloud

Description
When I connect a container to a network, the output may show unreadable log:

root@ubuntu:~# docker network connect bridge allen
Error response from daemon: service endpoint with name allen already exists

Here the error message is service endpoint with name allen already exists, actually I can not follow this error message.

Steps to reproduce the issue:

  1. docker run -d --name allen alpine sleep 12344
  2. docker network connect bridge allen, report above error message

Describe the results you received:

root@ubuntu:~# docker network connect bridge allen
Error response from daemon: service endpoint with name allen already exists

Describe the results you expected:

root@ubuntu:~# docker network connect bridge allen
Error response from daemon: endpoint with name allen already exists in network bridge

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

root@ubuntu:~# docker version
Client:
 Version:      1.13.0-rc4
 API version:  1.25
 Go version:   go1.7.3
 Git commit:   88862e7
 Built:        Fri Dec 16 22:59:15 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.13.0-rc4
 API version:  1.25 (minimum version 1.12)
 Go version:   go1.7.3
 Git commit:   88862e7
 Built:        Fri Dec 16 22:59:15 2016
 OS/Arch:      linux/amd64
 Experimental: false

Output of docker info:

root@ubuntu:~# docker info
Containers: 3
 Running: 2
 Paused: 1
 Stopped: 0
Images: 1
Server Version: 1.13.0-rc4
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 7
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 51371867a01c467f08af739783b8beafc154c4d7
init version: 949e6fa
Security Options:
 apparmor
Kernel Version: 3.19.0-25-generic
Operating System: Ubuntu 14.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.954 GiB
Name: ubuntu
ID: FXOY:JCOY:HKDI:VO5U:FYDM:UEXV:YIFN:AISM:NR6U:VMW5:V4MZ:RQWF
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 36
 Goroutines: 45
 System Time: 2016-12-27T11:11:39.687542792+08:00
 EventsListeners: 0
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Labels:
 d=a
 c=d
Experimental: false
Insecure Registries:
 a.b.c
 127.0.0.0/8
Registry Mirrors:
 https://a.b.c/
 https://a.b.c/
Live Restore Enabled: false

Additional environment details (AWS, VirtualBox, physical, etc.):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions