docker save | ssh user@host 'docker load'
docker images | egrep "^" | nawk '{ print $3 } ' | xargs docker rmi
docker system prune
docker volume rm $(docker volume ls -qf dangling=true)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker volume rm $(docker volume ls |awk '{print $2}')
rm -rf ~/Library/Containers/com.docker.docker/Data/*
richo@richo-lappy:~$ cat /etc/systemd/system/docker.service.d/richo.conf [Service] ExecStart= ExecStart=/usr/bin/dockerd -H tcp://127.0.0.1:2375 -H fd://
echo 'DOCKER_OPTS="--dns 10.72.4.130 -H tcp://127.0.0.1:2375"' > /etc/default/docker
#make sure /etc/systemd/system/docker.service.d exists otherwise use mkdir to create it printf "[Service]\nExecStart=\nExecStart=/usr/bin/docker daemon -H tcp://127.0.0.1:2375 -H fd:// \n" > /etc/systemd/system/docker.service.d/docker.conf
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty