• Home
  • About
    • 朱智博在Github上的Blog photo

      朱智博在Github上的Blog

      朱智博,朱智博的博客,zhuio,zhuio.github.io,

    • Learn More
    • Email
    • Github
    • Weibo
  • Posts
    • All Posts
    • All Tags
  • Projects

docker

26 May 2017

Reading time ~1 minute

###docker最基本的使用方法

####docker国内加速 使用网易hub加速 地址

  https://c.163.com/wiki/index.php?title=DockerHub%E9%95%9C%E5%83%8F%E5%8A%A0%E9%80%9F

ubuntu

  $ sudo echo "DOCKER_OPTS=\"\$DOCKER_OPTS --registry-mirror=http://hub-mirror.c.163.com\"" >> /etc/default/docker
  $ service docker restart

#####建立Dockerfile

  https://hub.docker.com/

####docker 常用命令

  docker build //建立container
  docker run //运行docker


docker Share Tweet +1