Loading

centos8安装docker

CentOS 8.0
docekr 25.0
1. 下载docker-ce的repo
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
2. 安装依赖
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
3. 安装docker-ce
dnf -y  install docker-ce  docker-ce-cli --nobest
4.启动 docker
systemctl start docker
5.查看 docker 版本信息
docker -v
6.设置开机自动启动
systemctl enable --now docker

显示bash-4.4# 解决办法

bash-4.4# cp /etc/skel/.bashrc /root/
bash-4.4# cp /etc/skel/.bash_profile /root/
bash-4.4# exit
cp /etc/skel/.bashrc /root/
cp /etc/skel/.bash_profile /root/
exit
[root@6829a4eaef65 /]# source ~/.bashrc
[root@6829a4eaef65 /]# source ~/.bash_profile

source ~/.bashrc
source ~/.bash_profile
posted @ 2024-03-03 07:27  Rzk  阅读(117)  评论(0编辑  收藏  举报