sudo apt-get update
sudo apt-get install linux-image-extra-$(uname -r)
sudo apt-key adv --keyserver hkp:
//p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo sh -c
"echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get purge lxc-docker*
sudo apt-cache policy docker-engine
sudo apt-get install docker-engine
sudo service docker start
2. use docker without sudo
sudo groupadd docker
sudo gpasswd -a ${USER} docker
3. You need to restart after finish step 2
4. Verify
$ docker version
--- you should see ---
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64
---
end
---
$ docker info
--- you should see ---
Containers: 80 // first time you will see container : 0
Images: 113
Server Version: 1.9.1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 273
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.19.0-25-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 4
Total Memory: 3.75 GiB
Name: puthea
ID: QC6E:M5P7:XBBS:VIC7:7X5W:FZKF:OUFV:DW6J:DCJR:XLYE:EMVT:QP5O
WARNING: No swap limit support
---
end
---
$ docker run hello-world
--- you should see ---
Hello from Docker.
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the
"hello-world"
image from the Docker Hub.
3. The Docker daemon created a
new
container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To
try
something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows,
and
more with a free Docker Hub account:
https:
//hub.docker.com
For more examples
and
ideas, visit:
https:
//docs.docker.com/userguide/
---
end
---
5. Install docker compose
curl -L https:
//github.com/docker/compose/releases/download/1.5.1/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin
sudo
chmod
+x /usr/local/bin/docker-compose
docker-compose -v
--- you should see ---
docker-compose version: 1.5.1
---
end
---
6. Download Images to store in cache to save speed
docker pull ubuntu:14.04
docker pull mariadb:10.0
docker pull nginx:1.7
docker pull mailhog/mailhog:latest
docker pull redis:3.0
docker pull elasticsearch:1.4
docker pull sebobo/shel.dockerflow:latest
No comments:
Post a Comment