标签:perm 镜像 安装docker 自启动 date reload system wal 安装
centos上安装docker版的redis,并以配置文件启动
docker search redis
docker pull redis:5.0
docker images
mkdir -p /usr/local/docker/redis/data
vim /usr/local/docker/redis.conf
docker run -p 6379:6379 --name myredis -v /usr/local/docker/redis/redis.conf:/etc/redis/redis.conf \
-v /usr/local/docker/redis/data:/data \
-d redis:5.0 \
redis-server /etc/redis/redis.conf \
--appendonly yes
docker logs myredis
docker exec -it myredis /bin/bash
systemctl status firewalld
systemctl start firewalld
firewall-cmd --zone=public --add-port=6379/tcp --permanent
firewall-cmd --reload
systemctl enable docker
docker update --restart =always dcdc70e2da0e
标签:perm 镜像 安装docker 自启动 date reload system wal 安装
原文地址:https://www.cnblogs.com/ywjcqq/p/13137510.html