https://registry.hub.docker.com/u/esmelab/memcached/
git clone https://github.com/ESMELab/docker-memcached.git
docker build -t="esmelab/memcached"
or
sh ./build.sh
(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
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
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
- Memcached RAM: 1GB