Skip to content

Instantly share code, notes, and snippets.

@orita
Created February 23, 2014 07:23
Show Gist options
  • Save orita/9168282 to your computer and use it in GitHub Desktop.
Save orita/9168282 to your computer and use it in GitHub Desktop.
Docker image and yum clean all
  • CentOS 6.5
  • Linux 2.6.32-431.5.1.el6.x86_64
  • Docker version 0.7.6, build bc3b2ec/0.7.6 (via epel)

without yum clean all

REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
mission-redis       latest              629e9e638282        12 seconds ago      368.2 MB

with yum clean all

REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
mission-redis       latest              df7562bc3bdf        6 seconds ago       311.6 MB

Dockerfile

FROM centos
MAINTAINER Naohisa Orita

RUN rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm \
  ;yum -y install redis \
  ;yum clean all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment