码迷,mamicode.com
首页 > 其他好文 > 详细

docker - install

时间:2021-06-02 15:16:09      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:doc   inux   sig   lis   date   rgba   run   deb   osi   

https://docs.docker.com/engine/install/ubuntu/

 

Set up the repository

apt-get update

apt-get install     apt-transport-https     ca-certificates     curl     gnupg     lsb-release



curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo   "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null



Install Docker Engine

apt-get update


apt-get install docker-ce docker-ce-cli containerd.io




Verify that Docker Engine is installed correctly by running the hello-world image.

docker run hello-world

docker - install

标签:doc   inux   sig   lis   date   rgba   run   deb   osi   

原文地址:https://www.cnblogs.com/chun2021/p/14824426.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!