在Ubuntu18.04上安裝Docker CE的方法(社區(qū)版)
更新時間:2020年01月20日 09:38:28 作者:matrixchan
這篇文章主要介紹了在Ubuntu18.04上安裝Docker CE的方法(社區(qū)版),文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
卸載舊版本
如果之前安裝舊版本,需要先卸載:
$ sudo apt-get remove docker docker-engine docker.io containerd runc
設(shè)置倉庫
更新apt
包索引:
$ sudo apt-get update
讓apt
能通過HTTPS使用倉庫:
$ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common
添加官方的GPG 密鑰:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
驗證你的密鑰:
$ sudo apt-key fingerprint 0EBFCD88
設(shè)置選用哪個版本。
$ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ test"
我選用了test版本。
安裝
更新apt
包索引
$ sudo apt-get update
開始安裝
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
測試
$ sudo docker run hello-world
參考
Get Docker Engine - Coummuntiy for Ubuntu
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
您可能感興趣的文章:
- 在Ubuntu?Server?22.04上安裝?Docker的詳細(xì)步驟記錄
- 一文詳解如何在Ubuntu系統(tǒng)中安裝docker
- 一步步詳解如何在Ubuntu?18.04上安裝Docker
- ubuntu22通過docker安裝wechat啟動后無界面的問題及解決方法
- Ubuntu 20.04 上安裝和使用 Docker的詳細(xì)過程(安裝包)
- 在Docker中的ubuntu中安裝Python3和Pip的問題
- 樹莓派3B+安裝64位ubuntu系統(tǒng)和docker工具的操作步驟詳解
- Windows10安裝WSL2 Ubuntu20.04并設(shè)置docker環(huán)境的方法
- 分享Ubuntu19無法安裝docker源問題
- Ubuntu24.04LTS在線安裝Docker引擎的詳細(xì)過程
相關(guān)文章
docker compose idea CreateProcess error=2 系統(tǒng)找不到指定的文件的問題
這篇文章主要介紹了docker compose idea CreateProcess error=2 系統(tǒng)找不到指定的文件的問題及解決方法,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-08-08excel導(dǎo)出在docker環(huán)境中總是失敗的問題
這篇文章主要介紹了excel導(dǎo)出在docker環(huán)境中總是失敗的問題及解決方法,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,2020-09-09