Docker with redis
in operateCo-De with 2 comments

Docker with redis

in operateCo-De with 2 comments

Pull Image

docker pull redis:latest

Create Container and Run

Check image exist

docker images redis

Run Container

docker run -p 6379:6379 --name some-redis -v /docker/host/dir:/data -d redis redis-server --appendonly yes

Run CLI

docker container ls -a
docker exec -it redis-server redis-cli

PS

docker stop redis-server
docker start redis-server
docker restart redis-server

Ref

https://blog.csdn.net/chenjianandiyi/article/details/78962709
Save the World

Comments are closed.