ubuntu 16.04 终端安装Docker
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
添加秘钥GPG到APT配置中。
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
增加Docker的源到/etc/apt/souces.list文件中,我的版本是14.04对应ubuntu-trusty。
sudo vim /etc/apt/sources.list
# 增加到最后一行
deb https://apt.dockerproject.org/repo ubuntu-trusty main
接下来,就可以用可以用apt-get直接安装Docker了。
sudo apt-get update
sudo apt-get install docker-engine
此时会遇到一个错误:
xdstar@ubuntu:/etc/apt$ sudo apt-get install docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
docker-engine : Depends: libsystemd-journal0 (>= 201) but it is not installable
Recommends: aufs-tools but it is not going to be installed
Recommends: cgroupfs-mount but it is not going to be installed or
cgroup-lite but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
解决办法:
在source.list 中docker源之前加上
deb http://cz.archive.ubuntu.com/ubuntu trusty main
然后 更新和安装
sudo apt-get update
sudo apt-get install docker-engine
OK!!!
相关推荐
ubuntu20.04 Docker镜像编译Armbian SDK
1. 操作系统:ubuntu20.04 2. Docker 镜像文件:ubuntu_20.04.zip 3. Armbian SDK 文件:armbian_sdk_20240806.tar.gz
Ubuntu16.04中Docker的卸载和安装
卸载 1:利用sudo apt-get remove docker 进行卸载提示如下,docker未按照所以不能卸载 2:再次查看docker版本,依然还在 3:原因是安装的时候安装的是docker-ce版本,所以卸载的时候也要卸载docker-ce,如下图 执行了:sudo apt-get remove docker-ce然后再次查看docker版本发现卸载成功了 安装 sudo apt...
这个我WSL Ubuntu20.04的启动文件
资源教程是在 https://blog.csdn.net/mayuxin1314/article/details/136905130
Ubuntu安装Docker教程[代码]
本文详细介绍了在Ubuntu系统上安装Docker的步骤,包括系统要求、卸载旧版本、安装Docker Engine以及验证安装是否成功。首先,确保系统满足要求,如Ubuntu 21.04、20.04或18.04。然后,卸载旧版本的Docker并保留相关数据。接着,通过官方推荐的安装方法,更新apt包、添加GPG密钥、设置stable仓库,并安装最新版本的Docker。最后,通过运行hello-world镜像验证安装是否成功。此外,还介绍了如何避免每次使用Docker时都需要sudo权限的方法,通过创建docker组并添加用户到组中。
在Ubuntu操作系统中安装Python.pdf
在Ubuntu操作系统中安装Python 入门


