profile
viewpoint

Ask questionsstart container failed with "failed to umount /var/lib/docker/containers/.../shm: no such file or directory"

$docker version Client: Version: 1.9.0-dev API version: 1.21 Go version: go1.4.3 Git commit: 1e51652-dirty Built: Sat Oct 10 03:18:00 UTC 2015 OS/Arch: linux/amd64

Server: Version: 1.9.0-dev API version: 1.21 Go version: go1.4.3 Git commit: 1e51652-dirty Built: Sat Oct 10 03:18:00 UTC 2015 OS/Arch: linux/amd64 $docker info Containers: 21 Images: 87 Engine Version: 1.9.0-dev Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 130 Dirperm1 Supported: false Execution Driver: native-0.2 Logging Driver: json-file Kernel Version: 3.13.0-65-generic Operating System: Ubuntu 14.04.3 LTS CPUs: 4 Total Memory: 3.854 GiB Name: ubuntu ID: KEN4:OLGJ:7WKG:TOAP:CLA3:KJ32:RK5Q:AWCG:QKYN:B6TD:UMHQ:4UGM Username: guohui Registry: https://index.docker.io/v1/ WARNING: No swap limit support $uname -a Linux ubuntu 3.13.0-65-generic #106-Ubuntu SMP Fri Oct 2 22:08:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

docker logs is: INFO[0060] POST /containers/9d4d911b57853471a37a4458488cfc6f12a58b67d2323d61eb8f407779e0b742/start ERRO[0060] failed to umount /var/lib/docker/containers/9d4d911b57853471a37a4458488cfc6f12a58b67d2323d61eb8f407779e0b742/shm: no such file or directory ERRO[0060] failed to umount /var/lib/docker/containers/9d4d911b57853471a37a4458488cfc6f12a58b67d2323d61eb8f407779e0b742/mqueue: no such file or directory ERRO[0060] 9d4d911b57853471a37a4458488cfc6f12a58b67d2323d61eb8f407779e0b742: Failed to umount ipc filesystems: failed to cleanup ipc mounts: no such file or directory no such file or directory INFO[0060] GET /containers/json ERRO[0060] Handler for POST /containers/9d4d911b57853471a37a4458488cfc6f12a58b67d2323d61eb8f407779e0b742/start returned error: Cannot start container 9d4d911b57853471a37a4458488cfc6f12a58b67d2323d61eb8f407779e0b742: invalid name: k8s_POD.6a43f87c_kube-ui-v2-7lyan_kube-system_31af4581-6f09-11e5-a71e-000c297950a1_7bad0127 ERRO[0060] HTTP Error err=Cannot start container 9d4d911b57853471a37a4458488cfc6f12a58b67d2323d61eb8f407779e0b742: invalid name: k8s_POD.6a43f87c_kube-ui-v2-7lyan_kube-system_31af4581-6f09-11e5-a71e-000c297950a1_7bad0127 statusCode=500

This problem is not exist with docker-1.8.2

moby/moby

Answer questions thaJeztah

@woshihaoren the unmount warning should be safe to ignore (likely if either the container has a private IPC, or the mount is already gone);

failed to unmount IPC: umount /var/lib/docker/containers/90f408e26e205d30676655a08504dddc0d17f5713c1dd4654cf67ded7d3bbb63/mounts/shm, flags: 0x2: no such file or directory

I had a quick look at the code, and looks like it's printing a warning because it fails to detect that it's an "does not exist" error, and because of that doesn't suppress the warning - opened a pull request for that https://github.com/moby/moby/pull/39653

Related questions

upgrade docker-18.09.2-ce , shim.sock: bind: address already in use: unknown hot 17
Windows Server 2019 publish ports in swarm not working hot 10
runc regression - EPERM running containers from selinux hot 8
Swarm restarts all containers hot 8
OCI runtime exec failed: exec failed: cannot exec a container that has stopped: unknown hot 7
integration: "error reading the kernel parameter" errors during CI hot 7
hcsshim::PrepareLayer failed in Win32: The parameter is incorrect hot 7
"docker stack deploy">"rpc error: code = 3 desc = name must be valid as a DNS name component" hot 6
write unix /var/run/docker.sock->@: write: broken pipe hot 6
Error response from daemon: rpc error: code = DeadlineExceeded desc = context deadline exceeded
Containers on overlay network cannot reach other containers
windowsRS1 and windowsRS5-process are failing due to "Unable to delete '\gopath\src\github.com\docker\docker" hot 4
no matching manifest for linux/arm64/unknown hot 4
Using healthcheck on swarm disturbs nameservices hot 4
failed to export image: failed to create image: failed to get layer: layer does not exist hot 4
Github User Rank List