Skip to content

ESMELab/docker-memcached

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-memcached

Image

https://registry.hub.docker.com/u/esmelab/memcached/

Clone

git clone https://github.com/ESMELab/docker-memcached.git

Build

docker build -t="esmelab/memcached"

or

sh ./build.sh

Run

(1 GB of RAM to memcached | see Defaults)

docker run --name esmelab-memcached -d -p 45001:11211 esmelab/memcached

or (512 MB of RAM to memcached)

docker run --name esmelab-memcached -d -p 45001:11211 esmelab/memcached memcached -m 512

or

sh ./start.sh

Check process

command

$ docker ps

output

CONTAINER ID        IMAGE                      COMMAND                CREATED             STATUS              PORTS                      NAMES
3527f5a36243        esmelab/memcached:latest   "/bin/sh -c memcache   3 minutes ago       Up 6 seconds        0.0.0.0:45001->11211/tcp   esmelab-memcached

Check connection

command

telnet 192.168.59.103 45001

output | ✓

Trying 192.168.59.103...
Connected to 192.168.59.103.
Escape character is '^]'.

output | ✗

Trying 192.168.59.103...
telnet: connect to address 192.168.59.103: Connection refused
telnet: Unable to connect to remote host

Defaults

  • Memcached RAM: 1GB

Releases

No releases published

Packages

No packages published

Languages