sudo apt-get install python-pip
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo service docker restart
sudo apt-get update
sudo apt-get -y install docker-ce
sudo pip install docker-compose
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://b9a7cc7f.m.daocloud.io
git clone https://github.com/NJU-itxia/itxia-backend-docker.git
cd itxia-backend-docker
sudo docker-compose up
运行 sudo docker-compose up
时,log 信息显示在终端界面上, 可以按 ctrl + c
关闭
如果不想运行在终端界面,而是后台静默运行, 可以 sudo docker-compose up -d
启动 docker containers
关闭运行 sudo docker-compose stop
sudo docker-compose ps
或者
sudo docker ps -a