天天看點

[Docker系列·10] 搭建Redis伺服器

[Docker系列·10] 搭建Redis伺服器
工作目錄:/home/erichan/docker-room/ubuntu-redis
--rm=false: automatically remove the container when it exits (incompatible with -d)
工作目錄:/home/erichan/docker-room/ubuntu-redis/slave
mac: <code>sed -ig 's/port 6379/port 6380/' redis.conf</code>
調試

on master

on slave

on host-host(mac os)

192.168.1.12 is docker host(ubuntu) ip

(完)

參考

<a href="https://docs.docker.com/examples/running_redis_service">running_redis_service</a>

<a href="https://github.com/dockerfile/redis">dockerfile/redis</a>

<a href="https://gist.github.com/james-m/8700237">james-m</a>

繼續閱讀