Using this image in your own container

You can use this Dockerfile template to start a new personalized container based on this container. Create a file named Dockerfile in your project directory and copy this content inside. See docker guide for instructions on how to use this file.

You must have a working environment with the source code of this repository. Read and follow how to setup your working environment to get a working directory. The following instructions assume you are at the top level of your working directory.

Build & run a container using docker

Jump into the container directory with cd Services/memcache

Build the container using docker build -t sv-memcache .

Run this container

Interactively with docker run -p 11211:11211 -v /logs -it sv-memcache. If you add a second parameter (like /bin/bash) to will run this command instead of the default entrypoint. Usefull to interact with this container (ex: /bin/bash, /bin/ps -a, /bin/df -h,...)

As a daemon with docker run -p 11211:11211 -v /logs -d sv-memcache

Build & run a container using docker-compose

Jump into the container directory with cd Services/memcache

Run this container

Interactively with docker-compose up Startup logs appears and escaping this command stop the container

As a daemon with docker-compose up -d. Container startup logs can be read using docker-compose logs