[CentOS-devel] official centos-7 docker image are wrong

Jim Perrin jperrin at centos.org
Wed Feb 10 23:41:35 UTC 2016



On 02/10/2016 04:18 PM, Farkas Levente wrote:

> 
> than why not fix the official base centos image to contain the right
> iputils or do whatever the reinstall did. anyway what the hell
> happened during reinstall since there is nothing like that in iputils
> pre/post install scripts!???
> 

I actually got around to testing this today, and it appears to work fine
without modification. I've tested this on both a centos and fedora host
per the same instructions in the bz:


+[jperrin at ferrata ~]$ docker run -it centos ping -c 5 google.com
Unable to find image 'centos:latest' locally
Trying to pull repository docker.io/library/centos ... latest: Pulling
from library/centos
Digest:
sha256:8072bc7c66c3d5b633c3fddfc2bf12d5b4c2623f7004d9eed6aae70e0e99fbd7
Status: Downloaded newer image for docker.io/centos:latest

PING google.com (216.58.218.206) 56(84) bytes of data.
64 bytes from dfw06s47-in-f14.1e100.net (216.58.218.206): icmp_seq=1
ttl=53 time=15.8 ms
64 bytes from dfw06s47-in-f206.1e100.net (216.58.218.206): icmp_seq=2
ttl=53 time=14.9 ms
64 bytes from dfw06s47-in-f206.1e100.net (216.58.218.206): icmp_seq=3
ttl=53 time=14.8 ms
64 bytes from dfw06s47-in-f206.1e100.net (216.58.218.206): icmp_seq=4
ttl=53 time=15.3 ms




> imho if the official base centos image is not working properly then
> it's a bug!


It's working fine.


> or write an official centos docker image howto as:
> Start each Dockerfile with:
> RUN rpm -e iputils && yum install iputils

No. That's an absurd workaround, not a fix. The fix (were it not
working) would be to remove the package from the base container.


> 
> so imho the subject of this email still vaild!


It doesn't appear so.


-- 
Jim Perrin
The CentOS Project | http://www.centos.org
twitter: @BitIntegrity | GPG Key: FA09AD77


More information about the CentOS-devel mailing list