Docker 使用
  1. 通过Docker源安装最新版本

    $ sudo apt-get install apt-transport-https $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 $ sudo bash -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" $ sudo apt-get update $ sudo apt-get install lxc-docker

  2. 添加用户到docker组

    $ sudo usermod -aG docker liangwei

  3. 阿里云Docker镜像库

http://help.aliyun.com/view/11108189_13857376.html?spm=0.0.0.0.I64grx

  1. 添加CA检查忽略:

    $ sudo vi /etc/default/docker

    文件中添加

    DOCKER_OPTS="--insecure-registry registry.mirrors.aliyuncs.com"

  2. 搭建私有的registry

    $ docker run -d -e STORAGE_PATH=/tmp/registry -v /data/docker/registry:/tmp/registry -p 127.0.0.1:5000:5000 registry.mirrors.aliyuncs.com/library/registry