构建一个属于自己的centos7-php80-swoole的Docker镜像
生活随笔
收集整理的這篇文章主要介紹了
构建一个属于自己的centos7-php80-swoole的Docker镜像
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
環(huán)境:
VMware虛擬機(jī)
一、快速搭建一臺(tái)centos7虛擬機(jī)
二、Centos Docker 安裝
#CentOS Docker 安裝 curl -sSL https://get.daocloud.io/docker | sh docker --version systemctl start docker systemctl enable docker三、Centos7.8基礎(chǔ)鏡像下載
#拉取centos鏡像 https://hub.docker.com/_/centos/tags?page=1 docker pull centos:7.8.2003 docker images docker tag xxxx centos:7.8 docker run -itd -p 8081:80 --name centos7.8 centos:7.8 sh docker ps docker exec -it xxxx /bin/bash四、開始構(gòu)建centos-php80-swoole
#進(jìn)入鏡像centos7.8內(nèi) docker exec -it xxxx /bin/bash#查看版本 cat /etc/redhat-release#更改鏡像源 yum -y install wget mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repovi /etc/resolv.conf nameserver 8.8.8.8 nameserver 114.114.114.114yum clean al總結(jié)
以上是生活随笔為你收集整理的构建一个属于自己的centos7-php80-swoole的Docker镜像的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: p之间边距设置
- 下一篇: php的qq邮箱正则表达式语法_正则表达