Public | Automated Build

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

My first successfull Docker based image for Memcached 1.4.22 on CentOS 6.7 intended for use with CentminMod.com LEMP stack.

My Docker Hub repo

Centmin Mod Docker Development forums


Grab from Docker Hub

docker pull centminmod/centos66-memcached

Run docker container

docker run -d -p 11211:11211 -t centminmod/centos66-memcached

or specify a name e.g. memc1

docker run --name memc1 -d -p 11211:11211 -t centminmod/centos66-memcached

or map to 33211 local host port

docker run --name memc1 -d -p 33211:11211 -t centminmod/centos66-memcached

or allocate a custom memory limit and settings e.g. 512MB memory

docker run --name memc1 -d -p 33211:11211 -t centminmod/centos66-memcached memcached -m 512

or allocate a custom memory limit and settings e.g. 512MB memory and 2 threads

docker run --name memc1 -d -p 33211:11211 -t centminmod/centos66-memcached memcached -m 512 -t 2

to access container via bash if started with name = memc1

docker exec -ti memc1 /bin/bash

Building from Dockerfile

Grab files

git clone https://github.com/centminmod/docker-centos66-memcached.git

Build Docker image called centminmod-memcached from Dockerfile. Run command within same directory as Dockerfile

docker build -t centminmod-memcached .

Run docker container

docker run -d -p 11211:11211 -t centminmod-memcached

or specify a name e.g. memc1

docker run --name memc1 -d -p 11211:11211 -t centminmod-memcached

or map to 33211 local host port

docker run --name memc1 -d -p 33211:11211 -t centminmod-memcached

or allocate a custom memory limit and settings e.g. 512MB memory

docker run --name memc1 -d -p 33211:11211 -t centminmod-memcached memcached -m 512

or allocate a custom memory limit and settings e.g. 512MB memory and 2 threads

docker run --name memc1 -d -p 33211:11211 -t centminmod-memcached memcached -m 512 -t 2    

to access container via bash if started with name = memc1

docker exec -ti memc1 /bin/bash
Docker Pull Command
Owner
centminmod

Comments (0)