https://github.com/nawodyaishan/docker-redis-image
This repository contains a Dockerfile for building a custom Redis image based on Alpine Linux.
https://github.com/nawodyaishan/docker-redis-image
docker docker-image
Last synced: 7 months ago
JSON representation
This repository contains a Dockerfile for building a custom Redis image based on Alpine Linux.
- Host: GitHub
- URL: https://github.com/nawodyaishan/docker-redis-image
- Owner: nawodyaishan
- Created: 2023-11-06T09:51:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T09:15:44.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T20:49:25.957Z (9 months ago)
- Topics: docker, docker-image
- Language: Dockerfile
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Redis Docker Image
This repository contains a Dockerfile for building a custom Redis image based on Alpine Linux.
## Prerequisites
Make sure you have Docker installed on your machine.
- [Docker Installation Guide](https://docs.docker.com/get-docker/)
## Getting Started
1. Clone this repository to your local machine:
```bash
git clone https://github.com/your_username/redis-docker.git
```2. Navigate to the project directory:
```bash
cd redis-docker
```3. Build the Docker image:
```bash
docker build -t /redisimage:1.0 .
```4. Run a container with access to the shell:
```bash
docker run -it /redisimage:1.0 sh
```You can replace `sh` with your preferred shell.
## Dockerfile Details
- **Base Image:** Alpine Linux
- **Installed Dependency:** Redis
- **Maintainer:** ``
- **Version:** 1.0## Usage
The Docker image starts a Redis server by default. If you want to customize the Redis configuration, you can modify
the `CMD` instruction in the Dockerfile.```Dockerfile
CMD ["redis-server"]
```