Dive Into Docker

  1. install VirtualBox-4.2.24-92790-Win.exe
  2. check whether CPU is support virtualization technology with software cpu-z 1-3.CPU進階技術講解 i5-4670 i5-4670
  3. enable vt-x in BIOS Enabling Intel VT-x and AMD-V virtualization hardware extensions in BIOS
  4. run book2docker.iso in VirtualBox http://docs.docker.io/installation/windows/
  5. set proxy and run docker sudo HTTP_PROXY=http://192.168.56.1:21/ docker -d & Docker Tip - If you are running docker behind proxy Using Docker behind a firewall
  6. pull busybox and base docker pull busybox docker pull base
  7. sudo docker run busybox echo hello wolrd
  8. sudo docker run -i -t busybox /bin/bash

Ubuntu 14.04

Host-only ethernet adapter in VirtualBox sudo apt-get update sudo apt-get install openssh-server -y sudo apt-get install docker -y sudo ln /usr/bin/docker.io /usr/local/bin/docker sudo service docker.io stop sudo HTTP_PROXY=http://192.168.56.1:21/ docker -d & alias d='sudo docker'

Proxy

  1. apt-get
    create a file named proxy in /etc/apt/apt.conf.d/ as below, Acquire::http::Proxy "http://192.168.56.1:21";

  2. git
    git config --global http.proxy http://192.168.56.1:21

  3. wget
    /etc/wgetrc -> http_proxy = http://192.168.56.1:21

  4. docker
    sudo HTTP_PROXY=http://192.168.56.1:21/ docker.io -d &

  5. curl
    export http_proxy=http://192.168.56.1:21/ export https_proxy=http://192.168.56.1:21/

Reference boot2docker lightweight_docker_experience_on_osx docs.docker.io TheDockerBook_sample

转载于:https://my.oschina.net/l1z2g9/blog/266790

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值