Docker: running memcached instance
Running memcached instance using Docker is pretty straightforward: Pull image from Docker hub
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
bash-3.2$ docker pull memcached latest: Pulling from memcached 30e38a0d02bb: Pull complete d0a946e5b34b: Pull complete 0e22c7635271: Pull complete cbc89630facd: Pull complete 31f79787e46c: Pull complete 353189480dc4: Pull complete 6708d05ca977: Pull complete 3a51cc675c6c: Already exists 64e5325c0d9d: Already exists bf84c1d84a8f: Already exists memcached:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security. Digest: sha256:7e492627975a37c89ffdce040233491bb8c92cc20e33bbe29064d3ef61ce9290 Status: Downloaded newer image for memcached:latest |
Run container:
1 2 |
bash-3.2$ docker run -d -p 11211:11211 memcached 2dda32455fd79cb1f7e21c901263d66b44313cf7206d3587fff225d9eb99acf8 |
Verify that container is listed as running by executing the following command:
1 2 3 |
bash-3.2$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2dda32455fd7 memcached:latest "memcached" 6 seconds ago Up 5 seconds 0.0.0.0:11211->11211/tcp insane_cori |