溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

ubuntu安裝docker-ce

發(fā)布時(shí)間:2020-02-27 06:04:17 來(lái)源:網(wǎng)絡(luò) 閱讀:103 作者:doubf 欄目:系統(tǒng)運(yùn)維
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ò)

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

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI