Docker operation redis

1. Search source

docker search redis

2. Download source

docker pull redis

3. Create and start myredis container (set port to connect)

docker run -d -p 6379:6379 -it   --name="myredis"  redis

4. View containers

docker ps myredis

5. Enter the myredis container

docker  exec -it myredis  redis-cli

Recommended Today

Common concurrency problems and event concurrency model

Common concurrency problems Over the years, researchers have spent a lot of time and energy studying the defects of concurrent programming. There are many common patterns of concurrent defects, which can be divided into two categories: non deadlock defects and deadlock defects. Understanding these patterns is the first step in writing robust, correct programs. Non […]