Artishan
artishan
docker@boot2docker:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c67a1f2a35b8 redis:latest "redis-server /etc/r 16 minutes ago Up 16 minutes 0.0.0.0:49177->6379/tcp artishan-redis
1c63c8f64305 mongo:2 "/entrypoint.sh mong About an hour ago Up About an hour 27017/tcp some-mongo
docker@boot2docker:~$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
mongo 2.6 f5f6e2fb906a Less than a second ago 392.3 MB
mongo 2.6.7 f5f6e2fb906a Less than a second ago 392.3 MB
mongo latest f5f6e2fb906a Less than a second ago 392.3 MB
mongo 2 f5f6e2fb906a Less than a second ago 392.3 MB
dockerfile/java oracle-java8 f5c1cc0fc96d Less than a second ago 750.9 MB
dockerfile/ubuntu latest 57d0bc345ba9 Less than a second ago 410.3 MB
dockerfile/nodejs latest 1228fc789e40 Less than a second ago 496.6 MB
dockerfile/elasticsearch latest d2781375fc3f Less than a second ago 755.7 MB
xeor/splunk latest 98ddebba8d37 Less than a second ago 701.3 MB
ubuntu latest 04c5d3b7b065 Less than a second ago 192.7 MB
redis latest e351821a3915 16 minutes ago 419.1 MB
<none> <none> 98f3bbc3a015 47 minutes ago 750.9 MB
mongodb latest e4720ca4077f 59 minutes ago 702.8 MB
devdb/kibana latest a48c0a897f4c 21 hours ago 856.5 MB
wordpress latest 9abd042235f3 40 hours ago 463.8 MB
ghost latest 4a3e4b1d6fc5 2 days ago 573.2 MB
example latest bdd4e914bf7c 2 days ago 231.4 MB
strongloop/node latest 93d69208731e 2 days ago 1.4 GB
choopooly/grafana-graphite latest 2de9ad5c3004 2 days ago 912.7 MB
tutum/grafana latest 10fe6ef935ca 4 days ago 220.9 MB
ubuntu 14.04 9bd07e480c5b 8 days ago 192.7 MB
jimmidyson/kibana4 latest 84161b45400e 2 weeks ago 269.8 MB
CLI: boot2docker ssh
GUI: boot2docker ssh
# Pull base image.
FROM dockerfile/ubuntu
# Install Redis.
RUN \
cd /tmp && \
wget http://download.redis.io/redis-stable.tar.gz && \
tar xvzf redis-stable.tar.gz && \
cd redis-stable && \
make && \
make install && \
cp -f src/redis-sentinel /usr/local/bin && \
mkdir -p /etc/redis && \
cp -f *.conf /etc/redis && \
rm -rf /tmp/redis-stable* && \
sed -i 's/^\(bind .*\)$/# \1/' /etc/redis/redis.conf && \
sed -i 's/^\(daemonize .*\)$/# \1/' /etc/redis/redis.conf && \
sed -i 's/^\(dir .*\)$/# \1\ndir \/data/' /etc/redis/redis.conf && \
sed -i 's/^\(logfile .*\)$/# \1/' /etc/redis/redis.conf
# Define mountable directories.
VOLUME ["/data"]
# Define working directory.
WORKDIR /data
# Define default command.
CMD ["redis-server", "/etc/redis/redis.conf"]
# Expose ports.
EXPOSE 6379
By Artishan
2015.01 docker-korea