docker

docker私有仓库Harbor搭建

Backend

虽然Docker官方提供了公共的镜像仓库,但是从安全和效率等方面考虑,部署我们私有环境内的Registry也是非常必要的。 Harbor是由VMware公司开源的企业级的Docker Registry管理项目,相比docker官方拥有更丰富的权限权利和完善的架构设计,适用大规模docker集群部署提供仓库服务。 它主要提供 Dcoker Registry 管理界面UI,可基于角色访问控制,镜像复制, AD/LDAP 集成,日志审核等功能,完全的支持中文。 准备 安装docker与docker-compose 下载离线安装包harbor-offline-installer-v2.3.1.t...

docker私有仓库搭建

Backend

这里宿主机ip为:192.168.10.100 修改宿主机hosts echo '192.168.10.100 registry.cw.net' >> /etc/hosts 配置 docker-compose.yml # tell docker what version of the docker-compose.yml we're using version: '3.1' services: registry: image: registry restart: always container_name: registry ports: - ...

docker搭建Redis集群-主从复制

Backend

一主二从 代码目录 │ docker-compose.yml ├─apache │ Dockerfile │ index.php ├─follower │ Dockerfile │ run.sh └─leader Dockerfile docker-compose.yml # docker-compose.yml # tell docker what version of the docker-compose.yml we're using version: '3' # define the network networks: web-network: # start the s...

docker基本操作

Backend

镜像 docker search nginx ⬅️来查看可用镜像 docker pull redis:latest ⬅️下载镜像 docker images ⬅️查看本地镜像 docker rmi {IMAGE_ID} ⬅️删除一个或多个镜像 docker rmi `docker images -q` ⬅️删除全部镜像 docker build -f ./Dockerfile -t php:v1-swoole . docker rm -f $(docker ps -aq) && docker rmi -f $(docker images -q) ⬅️删除全部镜像和容器 容器 docker...