Boot2docker版本問題

Issue: 剛剛升級了docker client後,發現search不管用了,出現的錯誤是說明docker client與docker server的版本不一致所造成...

$ sudo docker search peihsinsu
FATA[0000] Error response from daemon: client and server don't have same version (client : 1.17, server: 1.14)

Solve: 在boot2docker中,要升級boot2docker的docker server的版本可以透過boot2docker upgrade來做到,系統會檢查目前client的版本來比照更新server的版本喔。

boot2docker upgrade
docker is up to date (1.5.0), skipping upgrade...
boot2docker is up to date (v1.5.0), skipping upgrade...
Latest release for boot2docker/boot2docker is v1.5.0
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.5.0/boot2docker.iso
    to /Users/simonsu/.boot2docker/boot2docker.iso
Waiting for VM and Docker daemon to start...
..............................ooooooooooooooooooooooooooooo
Started.
Writing /Users/simonsu/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/simonsu/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/simonsu/.boot2docker/certs/boot2docker-vm/key.pem

To connect the Docker client to the Docker daemon, please set:
    export DOCKER_HOST=tcp://192.168.59.103:2376
    export DOCKER_CERT_PATH=/Users/simonsu/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1

results matching ""

    No results matching ""