docker-compose up leads to “client and server don't have same version (client : 1.14, server: 1.12)” error but client and server have the same version

后端 未结 9 2106
别那么骄傲
别那么骄傲 2020-12-08 06:22

docker version prints:

Client version: 1.0.1
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 990021a
Server version:          


        
9条回答
  •  执笔经年
    2020-12-08 07:14

    Since docker-compose 1.4 you can set the client API version, you don't have to downgrade the client or upgrade the server.

    You do not have to set a specific API version either, you can set the environment variable COMPOSE_API_VERSION=auto to have it auto-detect the client version.

提交回复
热议问题