利用者:Eibriel/Docker

提供: wiki
移動先: 案内検索

Ubuntu 14.04

Install Docker

wget -qO- https://get.docker.com/ | sh

Initialize bridge kernel module

sudo modprobe bridge

Install Cgroup Lite

apt-get install cgroup-lite
service cgroup-lite start

Test Docker

sudo docker -d
sudo docker run hello-world

Start an Ubuntu image

docker run -it ubuntu bash


Docker Image configuration

cd attract/docker/attract-db
sudo docker build -t eibriel/attract-db:v0 .
sudo docker run eibriel/attract-db:v0
cd attract/docker/attract
sudo docker build -t eibriel/attract:v0 .
sudo docker run eibriel/attract:v0

Tips

Images custom location

sudo docker -d -g /home/gabriel/dev/docker