Docker安装

Docker安装主要参考官网.

  • Mac OS X下安装 Docker Toolbox

    Docker Toolbox安装包含, docker-machine, docker, docker-compose 命令

    docker-machine是虚拟机VirtualBox管理工具,docker是docker daemon的客户端工具,docker-compose是Docker容器的服务编排工具.

  • Debian下安装参考

Add your user account to the docker group sudo usermod -aG docker

adduser hjb sudo

docker rund -d centos:8 ping 127.0.0.1 -c 100

docker logs containerId

docker run -d -P tomcat:7, map container's port to hosts's port

Upgrade Docker Engine

  1. update source

/etc/apt/sources.list.d/docker.list add such line: deb https://apt.dockerproject.org/repo debian-wheezy main

apt-get update

  1. update docker engine second: apt-get upgrade docker-engine

sudo mv /var/lib/dpkg/info/{packagename}.* /tmp/ sudo dpkg --remove --force-remove-reinstreq {packagename} sudo apt-get remove {packagename} sudo apt-get autoremove && sudo apt-get autoclean

apt-get install docker-engine

/var/lib/docker, images storage directory

Q. 1.9.0 -> 1.10.0

FATA[0001] Error starting daemon: Error initializing network controller: could not delete the default bridge network: network bridge has active endpoints