Tag Archives: devops

docker client / server API version mismatch

There may be the case that you connect the remote docker service with the API version older than your local one.

Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.22)

Since docker 1.10, we can use the environment variable  DOCKER_API_VERSION to override the API version like this:


Installation docker on ubuntu 16.04 hangs…

Docker use aufs storage driver provided by linux-image-extra-*

If you use the mainline kernel from PPA. The apt install may get stuck.

A workaround is overwrite the systemd configuration to use overlay for docker service:

Create /etc/systemd/system/docker.service.d/overlay.conf :

ExecStart=/usr/bin/docker daemon -H fd:// -s overlay

Flush systemd setting:

sudo systemctl daemon-reload

verify that the configuration has been loaded:

systemctl show --property=ExecStart docker

restart docker:

sudo systemctl restart docker