Docker - Error response from daemon: client is newer than server

后端 未结 6 1508
忘掉有多难
忘掉有多难 2020-12-13 18:48

After creating a new machine with Docker Machine, I\'m getting the following error:

$ docker ps
Error response from daemon: client is newer than ser         


        
6条回答
  •  温柔的废话
    2020-12-13 19:17

    If you upgrade your docker client you will not be able to use old docker-machine VMs. Actually you can force an upgrade with docker-machine upgrade vm-name, but if you are working with other distros (except boot2docker) as docker host like coreos, atomic, rancheros it may fail.

    I am using Carina to manage more than one docker client version.

    just install with $ curl -sL https://download.getcarina.com/dvm/latest/install.sh | sh (linux and mac installation) and run dvm ls to list installed versions, dvm install 1.9.0 to install versions and dvm use 1.8.1 to change your client version.

    Very easy and powerfull. =)

    Atention, for your safety always take a look inside scripts downloaded from internet before running them.

    Hope it helps

提交回复
热议问题