//=== On ubuntu_x64 on hyperV,
when using the binary docker downloaded by
$ wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O docker
$ chmod +x docker
[ http://it.3hd.me/2015/03/docker-install-by-binary.html ]
$ ~/docker ps
FATA[0000] Get http:///var/run/docker.sock/v1.17/containers/json:
dial unix /var/run/docker.sock: no such file or directory.
Are you trying to connect to a TLS-enabled daemon without TLS?
-->
$ sudo ~/docker -d &
$ ~/docker ps
$ ~/docker pull username/img:tag
//=== http://stackoverflow.com/questions/27528337/am-i-trying-to-connect-to-a-tls-enabled-daemon-without-tls
* docker acts both as server and client.
$ docker version
is command internal to the docker executable and not to the daemon/service running.
$ docker images
$ docker ps
$ docker pull centos
are commands which send queries to the docker daemon/service running.
* Docker by default supports TLS connection to its daemon/service.
[Q] when is TLS connectivity not required?
Only if the user you are logged in as is part of user group docker
or you have used sudo before the command
e.g. $ sudo docker images does not require TLS connectivity.
//=== http://itproctology.blogspot.com/2015/02/docker-on-ubuntu-on-hyper-v-2012-r2.html
*** steps to install docker on ubuntu on hyperv :
[use the lxc-docker package for ubuntu from docker.io]
$ sudo apt-get update
Upgrade the components (aka patch the OS)
$ sudo apt-get upgrade -y
Add Docker gpg key (that is 'qO' not 'qZero')
$ sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
Update the app list
$ sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ >> /etc/apt/sources.list.d/docker.list"
Update the local apt repository after adding the docker reference
$ sudo apt-get update
Install (latest) Docker (on 12/15/14 this is 1.4.0)
$ sudo apt-get install lxc-docker -y
$ docker version
$ docker pull username/imgname:tagname
$ ps aux| grep docker
--> service name is docker rather than "docker.io"
$ sudo service docker stop
$ sudo service docker start
//=== http://www.petri.com/microsoft-announces-hyper-v-containers.htm
//=== boot_to_docker iso for hyperV
http://blogs.msdn.com/b/scicoria/archive/2014/10/09/getting-docker-running-on-hyper-v-8-1-2012-r2.aspx
2015年4月13日 星期一
docker on ubuntu on hyper-V
標籤:
docker,
docker.io,
docker.sock,
hyper-V,
hyperv,
install,
installation,
service,
TLS,
TLS-enabled,
Ubuntu
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言