
Docker
文章平均质量分 68
米花町的小侦探
这个作者很懒,什么都没留下…
展开
-
DevOps之五Jenkins
1.安装jdk更换阿里源wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo && yum makecache安装jdkyum install -y java-1.8.0-openjdk*2.安装Jenkins1.下载https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.原创 2021-08-20 12:14:50 · 1009 阅读 · 0 评论 -
DevOps之四GitLab
官方文档: [Download and install GitLab | GitLab](https://about.gitlab.com/install/#centos-7)本次实验使用虚拟机,CentOS 7,内存为4G1.更换阿里源wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repoyum makecache2. 安装相关依赖sudo yum install -y原创 2021-08-20 12:13:31 · 360 阅读 · 1 评论 -
DevOps之三Harbor
1.安装安装docker安装docker-compose下载Harbor的压缩包https://github.com/goharbor/harbor/releasestar -zxvf harbor-offline-installer-v2.3.1.tgz mkdir /opt/harbormv harbor/* /opt/harborcd /opt/harbor[root@localhost harbor]# lscommon.sh harbor.v2.3.1.tar.gz原创 2021-08-20 12:12:44 · 197 阅读 · 0 评论 -
DevOps之二DockerCompose
简介官方文档: Overview of Docker Compose | Docker DocumentationCompose 是用于定义和运行多容器 Docker 应用程序的工具。通过 Compose,您可以使用 YML 文件来配置应用程序需要的所有服务。然后,使用一个命令,就可以从 YML 文件配置中创建并启动所有服务。Compose 使用的三个步骤:使用 Dockerfile 定义应用程序的环境。使用 docker-compose.yml 定义构成应用程序的服务,这样它们可以在隔离环境中原创 2021-08-20 12:11:50 · 256 阅读 · 0 评论 -
DevOps之一Docker
一、安装关闭防火墙systemctl stop firewalld.servicesystemctl disable firewalld.service安装Docker引擎yum install -y yum-utilsyum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo yum install -y docker-ce docker-ce-c原创 2021-08-20 12:10:37 · 626 阅读 · 1 评论 -
CentOS安装Docker
一、安装yum install -y yum-utilsyum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo yum install docker-ce docker-ce-cli containerd.iosystemctl start dockerdocker run hello-world二、镜像管理登录docker hub[root原创 2021-07-05 17:23:07 · 521 阅读 · 0 评论 -
DockerFile
DockerFile练习root@Desktop:~# pwd/rootroot@Desktop:~# mkdir testroot@Desktop:~# cd test/1.FROM我们创建基于centos的镜像root@Desktop:~/test# docker pull centosroot@Desktop:~/test# vim Dockerfile#FROM练习FROM centos#构建root@Desktop:~/test# docker build -t c原创 2021-04-16 16:27:40 · 147 阅读 · 0 评论 -
Docker基础
Docker基础一、镜像命令1.列出本机镜像docker images2.搜索镜像docker search 镜像名3.拉取镜像docker pull 镜像名4.删除镜像docker rmi 镜像ID若报错可能是因为该镜像生成了容器,可以先删除容器再删除镜像,或者强制删除docker rmi -f 镜像ID二、容器命令1.新建并启动容器docker run -it 镜像名-d:后台运行容器,并返回容器ID, 也即启动守护式容器;-i:以交互模式运行容器,通常与-t原创 2021-04-16 16:26:11 · 3780 阅读 · 0 评论