maya's blog

About programming, aws and ubuntu

docker manifestコマンドを有効にする

デフォルトではdocker manifestを実行すると

docker manifest is only supported on a Docker cli with experimental cli features enabled

と返ってくる。このコマンドを有効にするには、 ~/.docker/config.jsonexperimental, enabledのkey, valueを追加する

i.e.

{
    "auths": {
        "experimental": "enabled",
        "https://index.docker.io/v1/": {
            "auth": "xxxxxxxxxxxxxxxxxx"
        }
    },
    "HttpHeaders": {
        "User-Agent": "Docker-Client/18.09.4 (linux)"
    }
}

確認

$ docker version
Client:
 Version:           18.09.4
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        d14af54266
 Built:             Wed Mar 27 18:35:52 2019
 OS/Arch:           linux/amd64
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          18.09.4
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.8
  Git commit:       d14af54
  Built:            Wed Mar 27 18:01:48 2019
  OS/Arch:          linux/amd64
  Experimental:     false

docker manifest | Docker Documentation