{"action":"created","issue":{"url":"https://api.github.com/repos/docker/cli/issues/954","repository_url":"https://api.github.com/repos/docker/cli","labels_url":"https://api.github.com/repos/docker/cli/issues/954/labels{/name}","comments_url":"https://api.github.com/repos/docker/cli/issues/954/comments","events_url":"https://api.github.com/repos/docker/cli/issues/954/events","html_url":"https://github.com/docker/cli/issues/954","id":307063269,"node_id":"MDU6SXNzdWUzMDcwNjMyNjk=","number":954,"title":"Docker `manifest create --amend` doesn't update the manifest","user":{"login":"artiomchi","id":822898,"node_id":"MDQ6VXNlcjgyMjg5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/822898?v=4","gravatar_id":"","url":"https://api.github.com/users/artiomchi","html_url":"https://github.com/artiomchi","followers_url":"https://api.github.com/users/artiomchi/followers","following_url":"https://api.github.com/users/artiomchi/following{/other_user}","gists_url":"https://api.github.com/users/artiomchi/gists{/gist_id}","starred_url":"https://api.github.com/users/artiomchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artiomchi/subscriptions","organizations_url":"https://api.github.com/users/artiomchi/orgs","repos_url":"https://api.github.com/users/artiomchi/repos","events_url":"https://api.github.com/users/artiomchi/events{/privacy}","received_events_url":"https://api.github.com/users/artiomchi/received_events","type":"User","site_admin":false},"labels":[{"id":617960121,"node_id":"MDU6TGFiZWw2MTc5NjAxMjE=","url":"https://api.github.com/repos/docker/cli/labels/platform/windows","name":"platform/windows","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-20T22:34:55Z","updated_at":"2018-06-25T16:12:03Z","closed_at":null,"author_association":"NONE","body":"Once a manifest was created, I wasn't able to alter it. I created several images, then created a manifest that could select the correct image based on the current platform. Once deployed to docker hub, I updated the images with a new build and tried to update the manifest file, but realised that the manifest create command wasn't actually changing anything and I was always getting the cached version. \r\n\r\nThere is NO command to delete the cached manifest :)\r\n\r\nWhat I finally figured out is that I could push it to the docker repository again by calling\r\n```\r\ndocker manifest push --purge artiomchi/helloworld\r\n```\r\n\r\nThe `--purge` parameter cleared the local cached manifest, so I was able to create a new one and push it again overwriting it on the docker hub (I used the purge param again for good measure)\r\n\r\n### Expected behavior\r\nThe `--amend` attribute in the `docker manifest create` command should mean that the manifest list should be updated\r\n\r\n### Actual behavior\r\nIf a manifest is cached locally, it won't be updated at all by the `docker manifest create --amend` command\r\n\r\n### Information\r\n\r\nRunning on Windows 10 with 1709 creator's update, Docker 18.03 edge with experimental cli options on (to get access to the `manifest` commands)\r\n\r\n### Steps to reproduce the behavior\r\n\r\nBased on the https://github.com/artiomchi/HelloWorld project\r\n\r\n```powershell\r\ndocker manifest create artiomchi/helloworld:latest artiomchi/helloworld:alpine artiomchi/helloworld:nanoserver artiomchi/helloworld:nanoserver-1709\r\ndocker manifest push artiomchi/helloworld:latest\r\n\r\n// Create new images\r\n\r\ndocker manifest create --amend artiomchi/helloworld:latest artiomchi/helloworld:alpine artiomchi/helloworld:nanoserver artiomchi/helloworld:nanoserver-1709\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/docker/cli/issues/comments/400008219","html_url":"https://github.com/docker/cli/issues/954#issuecomment-400008219","issue_url":"https://api.github.com/repos/docker/cli/issues/954","id":400008219,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDAwODIxOQ==","user":{"login":"SamiSousa","id":6036785,"node_id":"MDQ6VXNlcjYwMzY3ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/6036785?v=4","gravatar_id":"","url":"https://api.github.com/users/SamiSousa","html_url":"https://github.com/SamiSousa","followers_url":"https://api.github.com/users/SamiSousa/followers","following_url":"https://api.github.com/users/SamiSousa/following{/other_user}","gists_url":"https://api.github.com/users/SamiSousa/gists{/gist_id}","starred_url":"https://api.github.com/users/SamiSousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamiSousa/subscriptions","organizations_url":"https://api.github.com/users/SamiSousa/orgs","repos_url":"https://api.github.com/users/SamiSousa/repos","events_url":"https://api.github.com/users/SamiSousa/events{/privacy}","received_events_url":"https://api.github.com/users/SamiSousa/received_events","type":"User","site_admin":false},"created_at":"2018-06-25T16:12:03Z","updated_at":"2018-06-25T16:12:03Z","author_association":"NONE","body":"Something I've been wondering: are image indexes (manifest list) and image manifests supposed to be immutable?"}}
{"actor":{"display_login":"SamiSousa"}}