Here are logs when installing docker on Ubuntu 14.04.
just follow installation instructions as below.
https://docs.docker.com/installation/ubuntulinux/#ubuntu-trusty-1404-lts-64-bit
| 
root@ubuntu:~# tail -1 /etc/lsb-release  
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS" 
root@ubuntu:~# uname -ri 
3.13.0-29-generic x86_64 | 
ufw settings. 
| 
root@ubuntu:~# grep -i ^default_ /etc/default/ufw  
DEFAULT_INPUT_POLICY="ACCEPT" 
DEFAULT_OUTPUT_POLICY="ACCEPT" 
DEFAULT_FORWARD_POLICY="ACCEPT" 
DEFAULT_APPLICATION_POLICY="SKIP" | 
install docker via apt-get.
| 
root@ubuntu:~# apt-get install docker.io | 
make a symbolic link
| 
root@ubuntu:~# ln -sf /usr/bin/docker.io /usr/local/bin/docker 
root@ubuntu:~#  
root@ubuntu:~# ls -l /usr/local/bin/docker  
lrwxrwxrwx 1 root root 18  6月 13 23:25 /usr/local/bin/docker -> /usr/bin/docker.io | 
this is for.. nnn, I need to check this to see this is for what.
| 
root@ubuntu:~# sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io | 
download an ubuntu image and start “/bin/bash” in a container.
there is no ubuntu images in the local machine, so download ubuntu the image from docker hub.
| 
root@ubuntu:~# docker run -i -t ubuntu /bin/bash 
Unable to find image 'ubuntu' locally 
Pulling repository ubuntu 
ad892dd21d60: Pulling image (trusty) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/  
6b0a59aa7c48: Pulling image (13.04) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/  
145762641db9: Pulling image (saucy) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/  
ad892dd21d60: Pulling dependent layers  | 
okay, now I am using “/bin/bash” in the container.
| 
WARNING: Local (127.0.0.1) DNS resolver found in resolv.conf and containers can't use it. Using default external servers : [8.8.8.8 8.8.4.4] 
root@9a4bd781bd27:/# 
root@9a4bd781bd27:/# tail -1 /etc/lsb-release   
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS" 
root@9a4bd781bd27:/#                          
root@9a4bd781bd27:/# uname -a 
Linux 9a4bd781bd27 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux 
root@9a4bd781bd27:/# hostname  
9a4bd781bd27 
root@9a4bd781bd27:/# cat /etc/resolv.conf  
nameserver 8.8.8.8 
nameserver 8.8.4.4 
root@9a4bd781bd27:/# ifconfig eth0 
eth0      Link encap:Ethernet  HWaddr 72:a5:30:72:57:7f   
          inet addr:172.17.0.2  Bcast:0.0.0.0  Mask:255.255.0.0 
          inet6 addr: fe80::70a5:30ff:fe72:577f/64 Scope:Link 
          UP BROADCAST RUNNING  MTU:1500  Metric:1 
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000  
          RX bytes:461 (461.0 B)  TX bytes:1080 (1.0 KB) 
root@9a4bd781bd27:/# ping -c 1 www.google.com 
PING www.google.com (173.194.38.81) 56(84) bytes of data. 
64 bytes from nrt19s17-in-f17.1e100.net (173.194.38.81): icmp_seq=1 ttl=53 time=9.19 ms 
--- www.google.com ping statistics --- 
1 packets transmitted, 1 received, 0% packet loss, time 0ms 
rtt min/avg/max/mdev = 9.193/9.193/9.193/0.000 ms | 
on the host
| 
root@ubuntu:~# docker ps 
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES 
9a4bd781bd27        ubuntu:14.04        /bin/bash           9 minutes ago       Up 9 minutes                            determined_heisenberg    | 
stop the container.
| 
root@ubuntu:~# docker stop 9a4bd781bd27 
9a4bd781bd27 | 
list images.
| 
root@ubuntu:~# docker images 
REPOSITORY               TAG                 IMAGE ID            CREATED             VIRTUAL SIZE 
ubuntu                   12.10               e314931015bd        8 days ago          172.2 MB 
ubuntu                   quantal             e314931015bd        8 days ago          172.2 MB | 
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.