2021
01-10
01-10
使用docker搭建redis主从的方法步骤
一、构建Docker环境1、创建dockerfileFROMcentos:latestRUNgroupadd-rredis&&useradd-r-gredisredisRUNyum-yupdate&&yum-yinstallepel-release&&yum-yinstallredis&&yum-yinstallnet-toolsEXPOSE63792、构建镜像dockerbuild-tdocker-test.3、查看当前镜像dockeriamgesREPOSITORYTAGIMAGEIDCREATEDSIZEdocker-testlatestccebd30e466a12minutesago396MBc...
继续阅读 >