Docker Community Forums

Share and learn in the Docker community.

Force Docker use schema v2

I use fresh Docker and experimental mode, but my images are being created with old schema version so I cant push them to the registry (it declines old schema versions). How can I force Docker to use schema v2?

{
“schemaVersion”: 1,
“name”: “docker/test-api/test-api-service”,
“tag”: “0.2-23-g0f19400”,
“architecture”: “amd64”,
“fsLayers”: [{


}

Docker info:

  • docker version
    Client: Docker Engine - Community
    Version: 19.03.1
    API version: 1.40
    Go version: go1.12.5
    Git commit: 74b1e89
    Built: Thu Jul 25 21:21:07 2019
    OS/Arch: linux/amd64
    Experimental: true

Server: Docker Engine - Community
Engine:
Version: 19.03.1
API version: 1.40 (minimum version 1.12)
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:19:36 2019
OS/Arch: linux/amd64
Experimental: true
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683