Skip to content

Docker Images for redis. (i386,amd64, arm32v6, arm32v7, arm64,ppc64le,riscv64,s390x)

License

Notifications You must be signed in to change notification settings

snowdreamtech/redis

Repository files navigation

Redis

Redis

Docker Image packaging for Redis. (amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le,riscv64, s390x)

Usage

To help you get started creating a container from this image you can either use docker-compose or the docker cli.

Docker Cli

Simple

docker run -d \
  --name=redis \
  -e TZ=Etc/UTC \
  -e REDIS_PASS=admin \
  -e DISALLOW_USER_LOGIN_REMOTELY=0 \
  -p 6379:6379 \
  -v /path/to/data:/var/lib/redis \
  --restart unless-stopped \
  snowdreamtech/redis:latest

Advance

docker run -d \
  --name=redis \
  -e TZ=Etc/UTC \
  -e REDIS_PASS=admin \
  -e DISALLOW_USER_LOGIN_REMOTELY=0 \
  -e REDIS_PORT=6379 \
  -p 6379:6379 \
  -v /path/to/data:/var/lib/redis \
  --restart unless-stopped \
  snowdreamtech/redis:latest

Docker Compose

Simple

version: "3"

services:
  redis:
    image: snowdreamtech/redis:latest
    container_name: redis
    environment:
      - TZ=Etc/UTC
      - REDIS_PASS=admin
      - DISALLOW_USER_LOGIN_REMOTELY=0 
    volumes:
      - /path/to/data:/var/lib/redis
    ports:
      - 6379:6379
    restart: unless-stopped

Advance

version: "3"

services:
  redis:
    image: snowdreamtech/redis:latest
    container_name: redis
    environment:
      - TZ=Etc/UTC
      - REDIS_PASS=admin
      - DISALLOW_USER_LOGIN_REMOTELY=0 
      - REDIS_PORT=6379
    volumes:
      - /path/to/data:/var/lib/redis
    ports:
      - 6379:6379
    restart: unless-stopped

Development

docker buildx create --use --name build --node build --driver-opt network=host
docker buildx build -t snowdreamtech/redis --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/riscv64,linux/s390x . --push

Reference

  1. 使用 buildx 构建多平台 Docker 镜像
  2. 使用 buildx 构建多平台 Docker 镜像
  3. 如何使用 docker buildx 构建跨平台 Go 镜像
  4. Building Multi-Arch Images for Arm and x86 with Docker Desktop
  5. How to Rapidly Build Multi-Architecture Images with Buildx
  6. Faster Multi-Platform Builds: Dockerfile Cross-Compilation Guide
  7. docker/buildx

Contact (备注:redis)

License

MIT

About

Docker Images for redis. (i386,amd64, arm32v6, arm32v7, arm64,ppc64le,riscv64,s390x)

Resources

License

Stars

Watchers

Forks

Packages