环境:Macbook pro 2015 macOS 10.15.6 &&Docker Desktop 2.3.0.4
docker下载地址
https://download.docker.com/mac/stable/Docker.dmg
推荐使用某雷下载
换源
截屏2020-08-27 下午11.55.49.png截屏2020-08-27 下午11.57.06.png
换源代码,最好是阿里源自己申请
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]
重启docker程序
docker安装centos
docker pull centos:7.5.1804
docker run centos:7.5.1804
docker ps -a
docker run -tid --name centos_1 --privileged=true centos:7.5.1804 /sbin/init
docker exec -it 容器id /bin/bash
yum -y install net-tools
yum -y install initscripts
关闭apache
sudo /usr/sbin/apachectl stop
安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh -y install.sh
添加软件源信息:
yum clean all
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
yum update -y
参考:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7
https://docs.docker.com/config/daemon/ipv6/
http://ylong.net.cn/docker-ipv6.html
说明:docker不成熟的ipv6,暂不折腾,直接虚拟机centos,网卡自动获取ipv6地址
网友评论