Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker hangs on start if VolumesFrom points to the container itself #38825

Open
dontub opened this issue Mar 4, 2019 · 0 comments
Open

Docker hangs on start if VolumesFrom points to the container itself #38825

dontub opened this issue Mar 4, 2019 · 0 comments
Labels
area/volumes kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. version/18.09

Comments

@dontub
Copy link

dontub commented Mar 4, 2019

Description
Docker hangs on start if VolumesFrom points to the container itself which can happen through renaming.

Steps to reproduce the issue:

  1. $ docker create --name test -v /test busybox
  2. $ docker create --name test2 --volumes-from test busybox
  3. $ docker rm test
  4. $ docker rename test2 test
  5. Restart docker

Describe the results you received:
Docker hangs on start.

Describe the results you expected:
Docker should start.

Output of docker version:

Client:
 Version:           18.09.3-ce
 API version:       1.39
 Go version:        go1.12
 Git commit:        774a1f4eee
 Built:             Thu Feb 28 20:38:40 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.09.3-ce
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.12
  Git commit:       774a1f4eee
  Built:            Thu Feb 28 20:37:49 2019
  OS/Arch:          linux/amd64
  Experimental:     false

Output of docker info:

docker info
Containers: 26
 Running: 1
 Paused: 0
 Stopped: 25
Images: 964
Server Version: 18.09.3-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9f2e07b1fc1342d1c48fe4d7bbb94cb6d1bf278b.m
runc version: ccb5efd37fb7c86364786e9137e22948751de7ed-dirty
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.20.11-arch2-1-ARCH
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.57GiB
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Cluster Store: etcd://127.0.0.1:2379
Cluster Advertise: 127.0.0.1:2380
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
@thaJeztah thaJeztah added kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. area/volumes version/18.09 labels Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/volumes kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. version/18.09
Projects
None yet
Development

No branches or pull requests

2 participants