Install memcached on ubuntu 12.10 container. Run this image with 'docker run -d -p 11211 lgsd/memcached memcached -u daemon'
46
MEMCACHED=$(docker run -d ubuntu:12.10 apt-get -y install memcached)
docker logs $MEMCACHED
Reading package lists... Building dependency tree... The following extra packages will be installed: libclass-isa-perl libevent-2.0-5 libgdbm3 libsasl2-2 libsasl2-modules libswitch-perl perl perl-modules Suggested packages: libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit libsasl2-modules-gssapi-heimdal libcache-memcached-perl libmemcached perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl make libpod-plainer-perl The following NEW packages will be installed: libclass-isa-perl libevent-2.0-5 libgdbm3 libsasl2-2 libsasl2-modules libswitch-perl memcached perl perl-modules 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. Need to get 8207 kB of archives. After this operation, 33.2 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ quantal/main libgdbm3 amd64 1.8.3-11 [34.2 kB] Get:2 http://archive.ubuntu.com/ubuntu/ quantal/main libsasl2-2 amd64 2.1.25.dfsg1-5 [69.7 kB] Get:3 http://archive.ubuntu.com/ubuntu/ quantal/main libevent-2.0-5 amd64 2.0.19-stable-3 [126 kB] Get:4 http://archive.ubuntu.com/ubuntu/ quantal/main libsasl2-modules amd64 2.1.25.dfsg1-5 [63.6 kB] Get:5 http://archive.ubuntu.com/ubuntu/ quantal/main libclass-isa-perl all 0.36-3 [11.9 kB] Get:6 http://archive.ubuntu.com/ubuntu/ quantal/main perl-modules all 5.14.2-13 [3390 kB] Get:7 http://archive.ubuntu.com/ubuntu/ quantal/main perl amd64 5.14.2-13 [4417 kB] Get:8 http://archive.ubuntu.com/ubuntu/ quantal/main libswitch-perl all 2.16-2 [19.2 kB] Get:9 http://archive.ubuntu.com/ubuntu/ quantal/main memcached amd64 1.4.14-0ubuntu1 [75.6 kB] Fetched 8207 kB in 12s (634 kB/s) Selecting previously unselected package libgdbm3:amd64. (Reading database ... 9893 files and directories currently installed.) Unpacking libgdbm3:amd64 (from .../libgdbm3_1.8.3-11_amd64.deb) ... Selecting previously unselected package libsasl2-2:amd64. Unpacking libsasl2-2:amd64 (from .../libsasl2-2_2.1.25.dfsg1-5_amd64.deb) ... Selecting previously unselected package libevent-2.0-5:amd64. Unpacking libevent-2.0-5:amd64 (from .../libevent-2.0-5_2.0.19-stable-3_amd64.deb) ... Selecting previously unselected package libsasl2-modules:amd64. Unpacking libsasl2-modules:amd64 (from .../libsasl2-modules_2.1.25.dfsg1-5_amd64.deb) ... Selecting previously unselected package libclass-isa-perl. Unpacking libclass-isa-perl (from .../libclass-isa-perl_0.36-3_all.deb) ... Selecting previously unselected package perl-modules. Unpacking perl-modules (from .../perl-modules_5.14.2-13_all.deb) ... Selecting previously unselected package perl. Unpacking perl (from .../perl_5.14.2-13_amd64.deb) ... Selecting previously unselected package libswitch-perl. Unpacking libswitch-perl (from .../libswitch-perl_2.16-2_all.deb) ... Selecting previously unselected package memcached. Unpacking memcached (from .../memcached_1.4.14-0ubuntu1_amd64.deb) ... Processing triggers for ureadahead ... Setting up libgdbm3:amd64 (1.8.3-11) ... Setting up libsasl2-2:amd64 (2.1.25.dfsg1-5) ... Setting up libevent-2.0-5:amd64 (2.0.19-stable-3) ... Setting up libsasl2-modules:amd64 (2.1.25.dfsg1-5) ... Setting up libclass-isa-perl (0.36-3) ... Setting up perl-modules (5.14.2-13) ... Setting up perl (5.14.2-13) ... update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode Setting up memcached (1.4.14-0ubuntu1) ... Starting memcached: memcached. Setting up libswitch-perl (2.16-2) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Processing triggers for ureadahead ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7, <> line 9.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin:
docker commit -m "Install memcached on ubuntu 12.10"
docker run -d -p 11211 lgsd/memcached memcached -u daemon WARNING: Docker detected local DNS server on resolv.conf. Using default external servers: [8.8.8.8 8.8.4.4] a70a3bc61e8b
docker ps
ID IMAGE COMMAND CREATED STATUS PORTS
a70a3bc61e8b lgsd/memcached:latest memcached -u daemon 30 seconds ago Up 29 seconds 49155->11211
ce03e6be68aa
docker inspect ce03e6be68aa
[{ "ID": "ce03e6be68aa271c0e7299b9c6366c2f152cba66406a88530190477d20c0cdb5", "Created": "2013-07-29T11:44:55.049985047+02:00", "Path": "/opt/elasticsearch/bin/elasticsearch", "Args": [ "-f" ], "Config": { "Hostname": "ce03e6be68aa", "User": "", "Memory": 0, "MemorySwap": 0, "CpuShares": 0, "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "PortSpecs": [ "9200" ], "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": null, "Cmd": [ "/opt/elasticsearch/bin/elasticsearch", "-f" ], "Dns": [ "8.8.8.8", "8.8.4.4" ], "Image": "bacongobbler/elasticsearch", "Volumes": null, "VolumesFrom": "", "Entrypoint": null }, "State": { "Running": true, "Pid": 6618, "ExitCode": 0, "StartedAt": "2013-07-29T11:44:55.085954501+02:00", "Ghost": false }, "Image": "cc89790e74f29ecbf70b398a10efe742c810e635680e5209ea51ca6425a0e88b", "NetworkSettings": { "IPAddress": "172.16.42.15", "IPPrefixLen": 24, "Gateway": "172.16.42.1", "Bridge": "docker0", "PortMapping": { "Tcp": { "9200": "49154" }, "Udp": {} } }, "SysInitPath": "/usr/bin/docker", "ResolvConfPath": "/var/lib/docker/containers/ce03e6be68aa271c0e7299b9c6366c2f152cba66406a88530190477d20c0cdb5/resolv.conf", "Volumes": {}, "VolumesRW": {} }]
docker kill ce03e6be68aa
No tags have been pushed to this repository yet.