Skip to content

Docker manifest create --amend doesn't update the manifest #954

Open
@artiomchi

Description

@artiomchi

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.

There is NO command to delete the cached manifest :)

What I finally figured out is that I could push it to the docker repository again by calling

docker manifest push --purge artiomchi/helloworld

The --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)

Expected behavior

The --amend attribute in the docker manifest create command should mean that the manifest list should be updated

Actual behavior

If a manifest is cached locally, it won't be updated at all by the docker manifest create --amend command

Information

Running on Windows 10 with 1709 creator's update, Docker 18.03 edge with experimental cli options on (to get access to the manifest commands)

Steps to reproduce the behavior

Based on the https://github.com/artiomchi/HelloWorld project

docker manifest create artiomchi/helloworld:latest artiomchi/helloworld:alpine artiomchi/helloworld:nanoserver artiomchi/helloworld:nanoserver-1709
docker manifest push artiomchi/helloworld:latest

// Create new images

docker manifest create --amend artiomchi/helloworld:latest artiomchi/helloworld:alpine artiomchi/helloworld:nanoserver artiomchi/helloworld:nanoserver-1709

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions