ubuntu安裝docker-ce

1.卸載現(xiàn)有docker:apt-get remove docker docker-engine docker.io
2.安裝:apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
3.curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 
4.apt-key fingerprint 0EBFCD88
5.add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
6.apt-get update
7.apt-get install docker-ce

備注:
自定義網(wǎng)絡(luò)

東方網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián),東方網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為東方上1000家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)網(wǎng)站建設(shè)要多少錢,請找那個(gè)售后服務(wù)好的東方做網(wǎng)站的公司定做!

docker network create --subnet 10.136.22.0/24 cnpro
查看創(chuàng)建的網(wǎng)橋

docker network ls

常見docker使用:

docker run -d --name test \
--privileged --restart=always \
--net uspro --ip 172.31.3.11 \
-v /opt/app/test:/usr/local/tomcat/webapps/ROOT \
-v /opt/app/logs/test:/usr/local/tomcat/logs \
-v /storage:/storage \
-p 8081:8080 \
tomcat:8.0

參考官網(wǎng):https://docs.docker.com/install/linux/docker-ce/ubuntu/#docker-ee-customers

本文題目:ubuntu安裝docker-ce
URL分享:http://www.muchs.cn/article12/ihejgc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供面包屑導(dǎo)航虛擬主機(jī)、網(wǎng)站改版軟件開發(fā)、網(wǎng)站維護(hù)、網(wǎng)頁設(shè)計(jì)公司

廣告

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

成都定制網(wǎng)站網(wǎng)頁設(shè)計(jì)