{"action":"created","issue":{"url":"https://api.github.com/repos/moby/moby/issues/33256","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/33256/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/33256/comments","events_url":"https://api.github.com/repos/moby/moby/issues/33256/events","html_url":"https://github.com/moby/moby/issues/33256","id":229471216,"number":33256,"title":"duplicate /dev/shm mounts being added when performing restart.","user":{"login":"jrivera-px","id":22946405,"avatar_url":"https://avatars3.githubusercontent.com/u/22946405?v=3","gravatar_id":"","url":"https://api.github.com/users/jrivera-px","html_url":"https://github.com/jrivera-px","followers_url":"https://api.github.com/users/jrivera-px/followers","following_url":"https://api.github.com/users/jrivera-px/following{/other_user}","gists_url":"https://api.github.com/users/jrivera-px/gists{/gist_id}","starred_url":"https://api.github.com/users/jrivera-px/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrivera-px/subscriptions","organizations_url":"https://api.github.com/users/jrivera-px/orgs","repos_url":"https://api.github.com/users/jrivera-px/repos","events_url":"https://api.github.com/users/jrivera-px/events{/privacy}","received_events_url":"https://api.github.com/users/jrivera-px/received_events","type":"User","site_admin":false},"labels":[{"id":583300157,"url":"https://api.github.com/repos/moby/moby/labels/version/17.05","name":"version/17.05","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-05-17T20:04:25Z","updated_at":"2017-06-08T18:49:34Z","closed_at":null,"body":"**Description**\r\nAdditional /dev/shm mounts are being added for each when the container is restarted.   This only seems to occur when using using a shared mounts.  \r\n\r\n**Steps to reproduce the issue:**\r\n1.  Start busybox container in daemon mode with shared mount and restart=always option:\r\n \r\nsudo /usr/bin/docker run --restart=always --name bshell -d -v /dev:/dev -v /tmp/common:/common:shared busybox;\r\n\r\n**Describe the results you received:**\r\n\r\nQuery mounts on the existing system and see the additional /dev/shm mounts being added as the busybox container exits and restarts (count increases):\r\n\r\nwhile [ 1 ]; do mount | egrep '/dev/shm'; mount | egrep '/dev/shm'| wc -l; echo \"----\"; sleep 1; done \r\n\r\n**Describe the results you expected:**\r\nOnly 1 /dev/shm should be present and reused.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nServer:\r\n Version:      17.05.0-ce\r\n API version:  1.29 (minimum version 1.12)\r\n Go version:   go1.7.5\r\n Git commit:   89658be\r\n Built:        Thu May  4 22:06:25 2017\r\n OS/Arch:      linux/amd64\r\n Experimental: false\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 1\r\n Running: 0\r\n Paused: 0\r\n Stopped: 1\r\nImages: 17\r\nServer Version: 17.05.0-ce\r\nStorage Driver: overlay\r\n Backing Filesystem: xfs\r\n Supports d_type: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins: \r\n Volume: local\r\n Network: bridge host macvlan null overlay\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nInit Binary: docker-init\r\ncontainerd version: 9048e5e50717ea4497b757314bad98ea3763c145\r\nrunc version: 9c2d8d184e5da67c95d601382adf14862e4f2228\r\ninit version: 949e6fa\r\nSecurity Options:\r\n seccomp\r\n  Profile: default\r\nKernel Version: 3.10.0-514.el7.x86_64\r\nOperating System: CentOS Linux 7 (Core)\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 1.797GiB\r\nName: centos73-1\r\nID: DVIC:JIGZ:URLP:IMVW:EUKA:VYXX:AM7H:Y22G:TWTX:7FRF:5XDP:IYCQ\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nExperimental: false\r\nInsecure Registries:\r\n 127.0.0.0/8\r\nLive Restore Enabled: false\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\nVirtualBox instance."},"comment":{"url":"https://api.github.com/repos/moby/moby/issues/comments/307193774","html_url":"https://github.com/moby/moby/issues/33256#issuecomment-307193774","issue_url":"https://api.github.com/repos/moby/moby/issues/33256","id":307193774,"user":{"login":"ssboisen","id":574189,"avatar_url":"https://avatars3.githubusercontent.com/u/574189?v=3","gravatar_id":"","url":"https://api.github.com/users/ssboisen","html_url":"https://github.com/ssboisen","followers_url":"https://api.github.com/users/ssboisen/followers","following_url":"https://api.github.com/users/ssboisen/following{/other_user}","gists_url":"https://api.github.com/users/ssboisen/gists{/gist_id}","starred_url":"https://api.github.com/users/ssboisen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssboisen/subscriptions","organizations_url":"https://api.github.com/users/ssboisen/orgs","repos_url":"https://api.github.com/users/ssboisen/repos","events_url":"https://api.github.com/users/ssboisen/events{/privacy}","received_events_url":"https://api.github.com/users/ssboisen/received_events","type":"User","site_admin":false},"created_at":"2017-06-08T18:49:34Z","updated_at":"2017-06-08T18:49:34Z","body":"Just tested on 17.06-rc2 and I were NOT able to reproduce the problem reported by @harsh-px - on 17.05.0-ce I could reproduce it."}}
{"actor":{"display_login":"ssboisen"}}