首页 > 系统服务 > 详细

Ubuntu18.04-docker-compose安装

时间:2021-05-26 14:27:12      阅读:25      评论:0      收藏:0      [点我收藏+]
root@iZm5e85x7l9b634qjg73hsZ:~# history
    1  ls
    2  sudo apt-get update
    3  sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
    4  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    5  sudo apt-key fingerprint 0EBFCD88
    6  sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    7  sudo apt-get update
    8  sudo apt-get install docker-ce
    9  sudo systemctl enable docker
   10  sudo systemctl start docker
   11  sudo curl -L https://github.com/docker/compose/releases/download/1.23.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
   12  sudo chmod +x /usr/local/bin/docker-compose
   13  docker-compose --version
   14  docker --version
   15  history
root@iZm5e85x7l9b634qjg73hsZ:~# docker-compose --version
docker-compose version 1.23.1, build b02f1306
root@iZm5e85x7l9b634qjg73hsZ:~#

 

Ubuntu18.04-docker-compose安装

原文:https://www.cnblogs.com/52-qq/p/14812187.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!