- install VirtualBox-4.2.24-92790-Win.exe
- check whether CPU is support virtualization technology with software cpu-z
- enable vt-x in BIOS
- run book2docker.iso in VirtualBox
- set proxy and run docker
sudo HTTP_PROXY=http://192.168.56.1:21/ docker -d &
- pull busybox and base
docker pull busybox
docker pull base
sudo docker run busybox echo hello wolrd
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= docker -d & alias d='sudo docker'
Proxy
-
apt-get
create a file named proxy in /etc/apt/apt.conf.d/ as below, Acquire::http::Proxy ""; -
git
git config --global http.proxy -
wget
/etc/wgetrc -> http_proxy = -
docker
sudo HTTP_PROXY= docker.io -d & -
curl
export http_proxy= export https_proxy=
Reference