docker redis image username password code example
Example 1: docker redis
$ docker run --name some-redis -d redis
Example 2: redis docker requirepass
docker run -d \
-h redis \
-e REDIS_PASSWORD=redis \
-v redis-data:/data \
-p 6379:6379 \
--name redis \
--restart always \
redis:5.0.5-alpine3.9 /bin/sh -c 'redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}'