Subject: Key Notes for Setting Up Docker/Debian/V-Box/WIN7
0. Check your laptop's configurations
64-bit WIN7 - host OS
Disable Virtual PC on WIN7 (a.k.a. Hyper-V Platform on WIN8)
Virtualization settings in BIOS
Press F10 to enter BIOS (e.g. HP ProBook 6460b)
System Configuration
(1) Device Configurations -> Virtualization Technology (checked)
(2) Set Security Level -> Virtualization Technology (change select)
1. Install and configure Oracle Virtual Box
Need to set up 2 network interfaces via Global Setting -> Networking
NatNetwork - for internet access
VirtualBox Host-Only Ethernet Adapter - for communication between Host and VM
Host Virtual Network Interface (A)
DHCP Server (D)
(2 screen snapshots)
Execute "ipconfig -all" from the host command line to
VirtualBox Host-Only Ethernet Adapter
(screen snapshot)
2. Import the VM's image of 64-bit Debian v8.4
Directly use the image created by Steven. Got it from
3. Start and configure Debian
Create your own $LOGIN and $HOME
Check 2 network interfaces by executing "ifconfig"
eth0 - NatNetwork
eth1 - VirtualBox Host-Only Ethernet Adapter
4. Install Docker in Debian
https://docs.docker.com/linux/step_one/
Debian - https://docs.docker.com/engine/installation/linux/debian/
Docker Hub account - https://hub.docker.com
Note:
If using the environment within the Corporate network,
1. Configure the proxy in the format as "http://HOST:PORT/" (e.g. $PROXY=http://xxx.xxx.xxx.xxx:8000/) for
curl - $HOME/.bashrc
export http_proxy="$PROXY"
export https_proxy="$PROXY"
apt - /etc/apt/apt.conf
Acquire::http::Proxy "$PROXY";
Docker's proxy - https://docs.docker.com/articles/systemd/#http-proxy
[Service]
Environment="HTTP_PROXY=$PROXY" "NO_PROXY=localhost, 127.0.0.1"
2. Configure DNS
/etc/resolv.conf
/etc/init.d/networking restart - make it effective
nslookup www.baidu.com - verify
3. for default terminal opened by VirtualBox, use SHIFT+PageUp/PageDown
0. Check your laptop's configurations
64-bit WIN7 - host OS
Disable Virtual PC on WIN7 (a.k.a. Hyper-V Platform on WIN8)
Virtualization settings in BIOS
Press F10 to enter BIOS (e.g. HP ProBook 6460b)
System Configuration
(1) Device Configurations -> Virtualization Technology (checked)
(2) Set Security Level -> Virtualization Technology (change select)
1. Install and configure Oracle Virtual Box
Need to set up 2 network interfaces via Global Setting -> Networking
NatNetwork - for internet access
VirtualBox Host-Only Ethernet Adapter - for communication between Host and VM
Host Virtual Network Interface (A)
DHCP Server (D)
(2 screen snapshots)
Execute "ipconfig -all" from the host command line to
VirtualBox Host-Only Ethernet Adapter
(screen snapshot)
2. Import the VM's image of 64-bit Debian v8.4
Directly use the image created by Steven. Got it from
3. Start and configure Debian
Create your own $LOGIN and $HOME
Check 2 network interfaces by executing "ifconfig"
eth0 - NatNetwork
eth1 - VirtualBox Host-Only Ethernet Adapter
4. Install Docker in Debian
https://docs.docker.com/linux/step_one/
Debian - https://docs.docker.com/engine/installation/linux/debian/
Docker Hub account - https://hub.docker.com
Note:
If using the environment within the Corporate network,
1. Configure the proxy in the format as "http://HOST:PORT/" (e.g. $PROXY=http://xxx.xxx.xxx.xxx:8000/) for
curl - $HOME/.bashrc
export http_proxy="$PROXY"
export https_proxy="$PROXY"
apt - /etc/apt/apt.conf
Acquire::http::Proxy "$PROXY";
Docker's proxy - https://docs.docker.com/articles/systemd/#http-proxy
[Service]
Environment="HTTP_PROXY=$PROXY" "NO_PROXY=localhost, 127.0.0.1"
2. Configure DNS
/etc/resolv.conf
/etc/init.d/networking restart - make it effective
nslookup www.baidu.com - verify
3. for default terminal opened by VirtualBox, use SHIFT+PageUp/PageDown