Docker with redis
in Soft-Tool with 0 comment

Docker with redis

in Soft-Tool with 0 comment

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

Responses