This repository contains a Dockerfile to build a Docker Image for Redis in CentOS 7.
Install Docker.
You can download automated build from public Docker Hub Registry:
docker pull zokeber/redis:latest
Another way: build from Github
To create the image zokeber/redis, clone this repository and execute the following command on the docker-redis folder:
docker build -t zokeber/redis:latest .
Another alternatively, you can build an image directly from Github:
docker build -t="zokeber/redis:latest" github.com/zokeber/docker-redis
Create container:
docker create -it -p 6379:6379 --name container-redis zokeber/redis
Start container:
docker start container-redis
Redis client:
docker exec -it container-redis redis-cli
Bash:
docker exec -it container-redis bash
Stop the currently running image:
docker stop container-redis
Update the docker image:
docker pull zokeber/redis:latest
Content type
Image
Digest
sha256:643a7f6ab…
Size
237.5 MB
Last updated
about 10 years ago
docker pull zokeber/redis