个人工具

“Docker”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
安装网络
安装网络
第24行: 第24行:
 
  sudo docker  ps
 
  sudo docker  ps
 
  sudo pipework br0 -i eno1 551088badf9d 192.168.1.10/[email protected]
 
  sudo pipework br0 -i eno1 551088badf9d 192.168.1.10/2[email protected]
 +
sudo docker attach 551088badf9d
  
 
== 常用地址 ==
 
== 常用地址 ==

2016年12月20日 (二) 16:28的版本

安装

sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv \
              --keyserver hkp://ha.pool.sks-keyservers.net:80 \
              --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt-get install docker-engine
sudo service docker start

安装 shipyard 面板

curl -s https://shipyard-project.com/deploy | bash -s

安装网络

git clone https://github.com/jpetazzo/pipework.git
sudo cp ./pipework/pipework /usr/local/bin/
sudo apt-get install iputils-arping bridge-utils -y

sudo brctl addbr br0
sudo ip addr add 192.168.1.4/24 dev br0
sudo ip link set dev br0 up

sudo docker  ps
sudo pipework br0 -i eno1 551088badf9d 192.168.1.10/[email protected]
sudo docker attach 551088badf9d

常用地址

https://docs.docker.com/engine/installation/linux/ubuntulinux/

https://github.com/shipyard/shipyard

https://toutiao.io/posts/496585/app_preview