一 遇到問題:
Ubuntu從16.04升級到22.04后,發(fā)現(xiàn)16.04按下列方式離線安裝的docker無法啟動,且提供的docker-ce版本過低(docker-18.06.3-ce)
離線安裝docker及常用docker命令_linux離線安裝docker_最小森林的博客-CSDN博客文章目錄1 離線安裝docker(需要root權(quán)限)1.1 安裝過程1.2 docker注冊為service(需要root)1.3 改為普通用可以使用docker2 把image(鏡像)在離線環(huán)境下安裝2.1 有網(wǎng)的環(huán)境 安裝docer2.2 離線下載鏡像 并 打包3 常用docker命令--解決bug記錄:1 離線安裝docker(需要root權(quán)限)1.1 安裝過程參考:《官方安裝介紹》...https://blog.csdn.net/u012052268/article/details/103264596報錯如下:
# systemctl status docker
……
4月 13 21:46:29 xxx dockerd[6730]: time="2023-04-13T21:46:29.332720409+08:00" level=error msg="containerd did not exit successfully" error="exit status 2" module=l
參考下列文檔,原因為Docker版本過低導(dǎo)致,需重新安裝
Docker-CE cannot run because of dockered error: "Containerd did not exist sucessfully" Exist status code 2 · Issue #377 · docker/for-linux · GitHubThis is a bug report This is a feature request I searched existing issues before opening this one Expected behavior When I run the sudo systemctl start docker then the docker will be start. Actual behavior Nothing happen. I have checked ...https://github.com/docker/for-linux/issues/377二 離線安裝Docker
嘗試過導(dǎo)入阿里云/中科大/docker官方等安裝源,在使用sudo apt-get update時一直報忽略,改為離線安裝。
?參考Docker官方文檔:Install Docker Engine on Ubuntu | Docker DocumentationJumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install.https://docs.docker.com/engine/install/ubuntu/
安裝步驟如下:
1.訪問下列鏈接,選擇對應(yīng)的Ubuntu版本
Index of linux/ubuntu/dists/https://download.docker.com/linux/ubuntu/dists/2.訪問?pool/stable/ ,然后選擇對應(yīng)的CPU架構(gòu)
?(amd64
,?armhf
,?arm64
, or?s390x
),如Ubuntu 22.04 amd64鏈接:Index of linux/ubuntu/dists/jammy/pool/stable/amd64/
3.下載下列dep文件
containerd.io_<version>_<arch>.deb
docker-ce_<version>_<arch>.deb
docker-ce-cli_<version>_<arch>.deb
docker-buildx-plugin_<version>_<arch>.deb
docker-compose-plugin_<version>_<arch>.deb
4.使用下列命令安裝
$ sudo dpkg -i ./containerd.io_<version>_<arch>.deb \
./docker-ce_<version>_<arch>.deb \
./docker-ce-cli_<version>_<arch>.deb \
./docker-buildx-plugin_<version>_<arch>.deb \
./docker-compose-plugin_<version>_<arch>.deb
Docker daemon將自動運行
5.啟動docker文章來源:http://www.zghlxwxcb.cn/news/detail-550650.html
$ sudo service docker start
6.設(shè)置docker自動啟動文章來源地址http://www.zghlxwxcb.cn/news/detail-550650.html
$ systemctl enable docker.service
到了這里,關(guān)于Ubuntu 22.04及其他版本離線安裝Docker(dep文件安裝方式)|解決docker無法啟動問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!