Public | Automated Build

Last pushed: a month ago
Short Description
基于Alpine linux镜像构建Redis
Full Description

Image Tag Metadata from image

Supported tags and respective Dockerfile links

Introduction

基于Alpine linux镜像构建Redis-4.0.2

Getting started

Installation

自动化构建镜像的可用Dockerhub和推荐的安装方法

docker pull eswork/redis:latest

或者你可以自己构建镜像

docker build -t eswork/redis https://github.com/EsWork/docker-redis

Quickstart

运行Redis:

docker run --name redis -d \
  -p 6379:6379 --restart=always \
  -v /srv/docker/redis:/var/lib/redis \
  eswork/redis

或者您可以使用示例docker-compose.yml文件启动容器

Logs

使用--logfile记录日志

docker run --name redis -d --restart=always \
  -p 6379:6379 \
  -v /srv/docker/redis:/var/lib/redis \
  eswork/redis:latest --logfile /var/log/redis/redis-server.log

访问redis日志位于/var/log/redis/redis-server.log

docker exec -it redis tail -f /var/log/redis/redis-server.log
Docker Pull Command
Owner
eswork
Source Repository