{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/30904","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/30904/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/30904/comments","events_url":"https://api.github.com/repos/docker/docker/issues/30904/events","html_url":"https://github.com/docker/docker/issues/30904","id":206741376,"number":30904,"title":"[Regression in master] `docker service create` can pull the image but then somehow miss it","user":{"login":"AkihiroSuda","id":9248427,"avatar_url":"https://avatars.githubusercontent.com/u/9248427?v=3","gravatar_id":"","url":"https://api.github.com/users/AkihiroSuda","html_url":"https://github.com/AkihiroSuda","followers_url":"https://api.github.com/users/AkihiroSuda/followers","following_url":"https://api.github.com/users/AkihiroSuda/following{/other_user}","gists_url":"https://api.github.com/users/AkihiroSuda/gists{/gist_id}","starred_url":"https://api.github.com/users/AkihiroSuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkihiroSuda/subscriptions","organizations_url":"https://api.github.com/users/AkihiroSuda/orgs","repos_url":"https://api.github.com/users/AkihiroSuda/repos","events_url":"https://api.github.com/users/AkihiroSuda/events{/privacy}","received_events_url":"https://api.github.com/users/AkihiroSuda/received_events","type":"User","site_admin":false},"labels":[{"id":392678049,"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-10T08:59:41Z","updated_at":"2017-02-10T09:27:27Z","closed_at":"2017-02-10T09:27:27Z","body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nGENERAL SUPPORT INFORMATION\r\n---------------------------------------------------\r\n\r\nThe GitHub issue tracker is for bug reports and feature requests.\r\nGeneral support can be found at the following locations:\r\n\r\n- Docker Support Forums - https://forums.docker.com\r\n- IRC - irc.freenode.net #docker channel\r\n- Post a question on StackOverflow, using the Docker tag\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Description**\r\n\r\nOn master 7efc286, `docker service create` can pull the image but then somehow miss it and fails to create the tasks.\r\n\r\nThe issue does not happen in 1.13.1. \r\nSo it should be a recent regression.\r\n<!--\r\nBriefly describe the problem you are having in a few paragraphs.\r\n-->\r\n\r\n**Steps to reproduce the issue:**\r\n\r\nStart a daemon with a clean `/var/lib/docker`, and then initialize the swarm (just 1 node is enough).\r\n\r\nMake sure we have no image here:\r\n```\r\n$ docker images -a\r\nREPOSITORY          TAG                 IMAGE ID            CREATED             SIZE\r\n```\r\n\r\nThen start a service from the official nginx image:\r\n```\r\n$ docker service create nginx\r\nft3zwm8z6m01qy1frzpmkph2y\r\n```\r\n\r\n**Describe the results you received:**\r\n\r\nThe service does not start up:\r\n```\r\n$ docker service ps --no-trunc ft3zwm                                                           \r\nID                         NAME              IMAGE                                                                                 NODE  DESIRED STATE  CURRENT STATE            ERROR                                                                                                  PORTS\r\ntrq6yyk68onclmdszzyjvimy9  stoic_bose.1      nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645  ws01  Ready          Rejected 1 second ago    \"No such image: nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645\"  \r\ncbb6n3lcdjul7hv2fiwjxmui7   \\_ stoic_bose.1  nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645  ws01  Shutdown       Rejected 6 seconds ago   \"No such image: nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645\"  \r\nlninoixrdqrkori00i6vjb950   \\_ stoic_bose.1  nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645  ws01  Shutdown       Rejected 11 seconds ago  \"No such image: nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645\"  \r\noo28behb3qg5d4603pu9nvvqd   \\_ stoic_bose.1  nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645  ws01  Shutdown       Rejected 16 seconds ago  \"No such image: nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645\"  \r\nygb6ur4yc923xq0g07mhs7dzd   \\_ stoic_bose.1  nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645  ws01  Shutdown       Rejected 21 seconds ago  \"No such image: nginx:latest@sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645\"\r\n```\r\n\r\nThe image with the corresponding digest seems successfully pulled, but somehow missed during creating the task container.\r\n```\r\n$ docker images --digests -a\r\nREPOSITORY          TAG                 DIGEST                                                                    IMAGE ID            CREATED             SIZE\r\nnginx               latest              sha256:f2d384a6ca8ada733df555be3edc427f2e5f285ebf468aae940843de8cf74645   cc1b61406712        2 weeks ago         182MB\r\n```\r\n\r\n**Describe the results you expected:**\r\nThe service should start up successfully\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\nClient:\r\n Version:      1.14.0-dev\r\n API version:  1.27\r\n Go version:   go1.7.5\r\n Git commit:   7efc286\r\n Built:        Fri Feb 10 08:08:48 2017\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.14.0-dev\r\n API version:  1.27 (minimum version 1.12)\r\n Go version:   go1.7.5\r\n Git commit:   7efc286\r\n Built:        Fri Feb 10 08:08:48 2017\r\n OS/Arch:      linux/amd64\r\n Experimental: true\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 0\r\n Running: 0\r\n Paused: 0\r\n Stopped: 0\r\nImages: 1\r\nServer Version: 1.14.0-dev\r\nStorage Driver: overlay2\r\n Backing Filesystem: extfs\r\n Supports d_type: true\r\n Native Overlay Diff: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins: \r\n Volume: local\r\n Network: bridge host ipvlan macvlan null overlay\r\nSwarm: active\r\n NodeID: bmw34auwnsqqomj227vnuoci1\r\n Is Manager: true\r\n ClusterID: qht5pl6dx7axm4sk2301fm836\r\n Managers: 1\r\n Nodes: 1\r\n Orchestration:\r\n  Task History Retention Limit: 5\r\n Raft:\r\n  Snapshot Interval: 10000\r\n  Number of Old Snapshots to Retain: 0\r\n  Heartbeat Tick: 1\r\n  Election Tick: 3\r\n Dispatcher:\r\n  Heartbeat Period: 5 seconds\r\n CA Configuration:\r\n  Expiry Duration: 3 months\r\n Node Address: 10.146.0.2\r\n Manager Addresses:\r\n  10.146.0.2:2377\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nInit Binary: docker-init\r\ncontainerd version: 78fb8f45890a601e0fd9051cf9f9f74923e950fd\r\nrunc version: 51371867a01c467f08af739783b8beafc154c4d7\r\ninit version: 949e6fa\r\nSecurity Options:\r\n apparmor\r\n seccomp\r\n  Profile: default\r\nKernel Version: 4.8.0-37-generic\r\nOperating System: Ubuntu 16.10\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 4\r\nTotal Memory: 14.69GiB\r\nName: ws01\r\nID: SN3T:CNK6:JKQD:54CY:XKF2:BRX3:CIRU:DQBT:6DVZ:VWQ2:Q5ET:F23L\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): true\r\n File Descriptors: 29\r\n Goroutines: 122\r\n System Time: 2017-02-10T08:56:37.960924349Z\r\n EventsListeners: 0\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\nExperimental: true\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\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/278896907","html_url":"https://github.com/docker/docker/issues/30904#issuecomment-278896907","issue_url":"https://api.github.com/repos/docker/docker/issues/30904","id":278896907,"user":{"login":"AkihiroSuda","id":9248427,"avatar_url":"https://avatars.githubusercontent.com/u/9248427?v=3","gravatar_id":"","url":"https://api.github.com/users/AkihiroSuda","html_url":"https://github.com/AkihiroSuda","followers_url":"https://api.github.com/users/AkihiroSuda/followers","following_url":"https://api.github.com/users/AkihiroSuda/following{/other_user}","gists_url":"https://api.github.com/users/AkihiroSuda/gists{/gist_id}","starred_url":"https://api.github.com/users/AkihiroSuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkihiroSuda/subscriptions","organizations_url":"https://api.github.com/users/AkihiroSuda/orgs","repos_url":"https://api.github.com/users/AkihiroSuda/repos","events_url":"https://api.github.com/users/AkihiroSuda/events{/privacy}","received_events_url":"https://api.github.com/users/AkihiroSuda/received_events","type":"User","site_admin":false},"created_at":"2017-02-10T09:27:27Z","updated_at":"2017-02-10T09:27:27Z","body":"Seems so, thank you for the information :sweat_smile: \r\n"}}
{"actor":{"display_login":"AkihiroSuda"}}