ubuntu18.04安裝docker-創新互聯

修改apt源

創新互聯公司是一家專業提供陽谷企業網站建設,專注與成都做網站、成都網站設計、H5頁面制作、小程序制作等業務。10年已為陽谷眾多企業、政府機構等服務。創新互聯專業網站制作公司優惠進行中。
# sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
# sudo apt-get update
# sudo apt-get upgrade

安裝依賴庫

# sudo apt-get install  -y apt-transport-https  ca-certificates curl  software-properties-common

添加Docker官方GPG key

# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

設置Docker穩定版倉庫

# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu  $(lsb_release -cs)  stable"

更新apt源索引

# sudo apt-get update

安裝最新版Docker CE(社區版)

# sudo apt-get install -y docker-ce

檢查Docker CE是否安裝正確,出現 Hello from Docker! ,則表示安裝成功

# sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete 
Digest: sha256:4df8ca8a7e309c256d60d7971ea14c27672fc0d10c5f303856d7bc48f8cc17ff
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/
For more examples and ideas, visit:
 https://docs.docker.com/get-started/

安裝docker-compose

$ sudo curl -L https://github.com/docker/compose/releases/download/1.25.0-rc4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ docker-compose version

設置權限,不用每次都輸入sudo

$ sudo usermod -a -G docker docker

docker常用命令

# # 啟動docker
# sudo service docker start
# # 停止docker
# sudo service docker stop
# # 重啟docker
# sudo service docker restart

當前標題:ubuntu18.04安裝docker-創新互聯
URL網址:http://m.kartarina.com/article44/ccgohe.html

成都網站建設公司_創新互聯,為您提供網站建設網站內鏈品牌網站建設云服務器、域名注冊網站改版

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

網站優化排名
主站蜘蛛池模板: 久久亚洲精品AB无码播放| a级毛片免费全部播放无码| 中文有无人妻vs无码人妻激烈| 亚洲Av无码乱码在线znlu| 国产在线无码一区二区三区视频 | 无码中文在线二区免费| 亚洲成a人在线看天堂无码| 97免费人妻无码视频| 日韩精品无码一区二区三区四区| 亚洲成a∨人片在无码2023| 国产台湾无码AV片在线观看| 亚洲av永久无码精品网址| 中文无码成人免费视频在线观看| 成人无码Av片在线观看| 久久久久亚洲AV无码观看| 潮喷失禁大喷水无码| 国产成人精品无码专区| 亚洲AV成人无码网站| 亚洲av无码电影网| 亚洲av福利无码无一区二区 | 岛国无码av不卡一区二区| 最新亚洲人成无码网站| 内射精品无码中文字幕| 无码av最新无码av专区| 亚洲AV中文无码乱人伦下载| 中文无码喷潮在线播放| 国产aⅴ无码专区亚洲av麻豆| 亚洲无码视频在线| 精品无码久久久久久久动漫| 精品无码一区二区三区水蜜桃| 无码中文字幕色专区| 蜜芽亚洲av无码一区二区三区| 伊人久久精品无码麻豆一区| 精品欧洲av无码一区二区| 精品久久亚洲中文无码| 色欲aⅴ亚洲情无码AV蜜桃| 97无码免费人妻超级碰碰碰碰| 亚洲AV无码成人精品区日韩| 无码高潮爽到爆的喷水视频app| 亚洲AV色无码乱码在线观看| 西西444www无码大胆|