Swap memcached docker run flags
This commit is contained in:
parent
8f37a500fc
commit
b838216764
|
|
@ -25,12 +25,12 @@ store, such as a database.
|
||||||
|
|
||||||
# How to use this image
|
# How to use this image
|
||||||
|
|
||||||
docker run -it --rm --name my-memcache memcached
|
docker run --name my-memcache -d memcached
|
||||||
|
|
||||||
Start your memcached container with the above command and then you can connect
|
Start your memcached container with the above command and then you can connect
|
||||||
you app to it with standard linking:
|
you app to it with standard linking:
|
||||||
|
|
||||||
docker run -it --link my-memcache:memcache my-app-image
|
docker run --link my-memcache:memcache -d my-app-image
|
||||||
|
|
||||||
The memcached server information would then be available through the ENV
|
The memcached server information would then be available through the ENV
|
||||||
variables generated by the link as well as through DNS as `memcache` from
|
variables generated by the link as well as through DNS as `memcache` from
|
||||||
|
|
|
||||||
|
|
@ -15,12 +15,12 @@ store, such as a database.
|
||||||
|
|
||||||
# How to use this image
|
# How to use this image
|
||||||
|
|
||||||
docker run -it --rm --name my-memcache memcached
|
docker run --name my-memcache -d memcached
|
||||||
|
|
||||||
Start your memcached container with the above command and then you can connect
|
Start your memcached container with the above command and then you can connect
|
||||||
you app to it with standard linking:
|
you app to it with standard linking:
|
||||||
|
|
||||||
docker run -it --link my-memcache:memcache my-app-image
|
docker run --link my-memcache:memcache -d my-app-image
|
||||||
|
|
||||||
The memcached server information would then be available through the ENV
|
The memcached server information would then be available through the ENV
|
||||||
variables generated by the link as well as through DNS as `memcache` from
|
variables generated by the link as well as through DNS as `memcache` from
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue