Master repository is for scripts or appropriate documentation. Images are branched per major version.
Images are generated from kickstart scripts in the sig-cloud-instance-build repository.
CentOS cloud images
Master repository is for scripts or appropriate documentation. Images are branched per major version.
Images are generated from kickstart scripts in the sig-cloud-instance-build repository.
Hi
Need some clarification regarding the kernel version of the operating system in centos docker latest image (centos7).
Uname -r gives version as 2.xxx ( I am running centos image on Enterprise RHEL 6.x)
Isn't 2.x very old kernel? I believe latest kernel is 7.x?
As per red hat running docker itself is not recommended on RHEL6 Because RHEL6 is running on kernel 2.x?
Why is centos image running 2.x kernel?
Thanks
tar utility is missing
I posted the following as docker-library/official-images#311, but I suspect that might be the wrong place for it.
(Apologies if this is the wrong spot for this issue)
Docker.com user vsipuli said it well:
Would it be possible to provide tags with minor (and perhaps even patch) versions? Currently it seems impossible to do repeatable builds with the CentOS images, because βcentos:centos6β might change the minor version at any time.
It looks like there are a number of CVEs that aren't fixed in the latest builds of CentOS (looking at centos:latest
/ centos:7
specifically); any chance we could get a newer build? π
I got an error with systemd-remount-fs.service when run /usr/sbin/init on the newest centos:7 as below:
docker run --rm -it -e container=docker -v /sys/fs/cgroup:/sys/fs/cgroup -v /tmp -v /run --name test1 centos:7 /usr/sbin/init
systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
Detected virtualization docker.
Detected architecture x86-64.
Welcome to CentOS Linux 7 (Core)!
Set hostname to <ff008e8d6e8c>.
Initializing machine ID from random generator.
Running in a container, ignoring fstab device entry for /dev/disk/by-uuid/c25a6cf7-7071-45f6-bed3-c85401bdc225.
[ OK ] Reached target Encrypted Volumes.
[ OK ] Reached target Swap.
[ OK ] Created slice Root Slice.
[ OK ] Listening on Journal Socket.
[ OK ] Listening on Delayed Shutdown Socket.
[ OK ] Reached target Remote File Systems.
[ OK ] Created slice System Slice.
Starting Journal Service...
[ OK ] Created slice system-getty.slice.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
Starting Remount Root and Kernel File Systems...
[ OK ] Created slice User and Session Slice.
[ OK ] Reached target Slices.
[ OK ] Reached target Paths.
systemd-remount-fs.service: main process exited, code=exited, status=1/FAILURE
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
Unit systemd-remount-fs.service entered failed state.
systemd-remount-fs.service failed.
Starting Rebuild Hardware Database...
Starting Rebuild Dynamic Linker Cache...
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Rebuild Journal Catalog...
Starting Load/Save Random Seed...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Journal Service.
Starting Flush Journal to Persistent Storage...
[ OK ] Started Flush Journal to Persistent Storage.
Starting Create Volatile Files and Directories...
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Rebuild Dynamic Linker Cache.
[ OK ] Started Rebuild Hardware Database.
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Reached target System Initialization.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Timers.
[ OK ] Reached target Basic System.
[ OK ] Started D-Bus System Message Bus.
Starting D-Bus System Message Bus...
Starting Login Service...
Starting Permit User Sessions...
Starting Cleanup of Temporary Directories...
[ OK ] Started Permit User Sessions.
[ OK ] Started Cleanup of Temporary Directories.
[ OK ] Started Console Getty.
Starting Console Getty...
[ OK ] Reached target Login Prompts.
[ OK ] Started Login Service.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
After booting the sudo blkid -o list and fdisk -l return nothing
systemctl status systemd-remount-fs.service return:
β systemd-remount-fs.service - Remount Root and Kernel File Systems
Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2015-12-16 08:35:25 UTC; 7min ago
Docs: man:systemd-remount-fs.service(8)
http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
Process: 18 ExecStart=/usr/lib/systemd/systemd-remount-fs (code=exited, status=1/FAILURE)
Main PID: 18 (code=exited, status=1/FAILURE)
Dec 16 08:35:25 e17ca5053231 systemd-remount-fs[18]: mount: can't find UUID=c25a6cf7-7071-45f6-bed3-c85401bdc225
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Did I miss some configuration?
It's been a while since centos:5
image has been updated.
Could this be done ? It's taking too much space just for a yum update:
FROM centos:5
RUN yum clean all && yum -y update && yum clean all
docker images:
REPOSITORY TAG IMAGE ID CREATED SIZE
centos5update latest de56043a214e 2 seconds ago 458.9 MB
centos 5 e285ec94bc80 4 months ago 284.1 MB
With this:
docker build --no-cache - <<EOF
FROM centos:5
RUN echo "cat .bashrc" >> /root/.bashrc
RUN bash -c "echo"
EOF
Expected result should be the content of the .bashrc
right?
But got nothing.
How can I get the corresponding source code for an image?
hostname command does not exist in centos 7.1.1503 docker image.
It does exist in centos 7.0.1406 and 7.2.1511
Two questions:
Thanks
The centos:7
image on docker hub is almost completely unusable. Probably due to the release of CentOS 7.2 yesterday.
Could you provide a CentOS 7.2 docker image?
To reproduce try installing a package (e.g. initscripts
or mailman
), it tries to update systemd and fails.
The host is CentOS Linux release 7.1.1503 (Core)
[root@938743e43bda /]# yum install initscripts
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
systemdcontainer | 2.9 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/5): extras/7/x86_64/primary_db | 90 kB 00:00:00
(2/5): base/7/x86_64/group_gz | 155 kB 00:00:00
(3/5): systemdcontainer/primary_db | 21 kB 00:00:00
(4/5): updates/7/x86_64/primary_db | 935 kB 00:00:00
(5/5): base/7/x86_64/primary_db | 5.3 MB 00:00:01
Determining fastest mirrors
* base: ftp.ines.lug.ro
* extras: mirrors.xservers.ro
* updates: ftp.ines.lug.ro
Resolving Dependencies
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.30-1.el7 will be installed
--> Processing Dependency: sysvinit-tools >= 2.87-5 for package: initscripts-9.49.30-1.el7.x86_64
--> Processing Dependency: module-init-tools for package: initscripts-9.49.30-1.el7.x86_64
--> Running transaction check
---> Package kmod.x86_64 0:20-5.el7 will be installed
--> Processing Dependency: dracut for package: kmod-20-5.el7.x86_64
---> Package sysvinit-tools.x86_64 0:2.88-14.dsf.el7 will be installed
--> Running transaction check
---> Package dracut.x86_64 0:033-360.el7_2 will be installed
--> Processing Dependency: systemd >= 219 for package: dracut-033-360.el7_2.x86_64
--> Processing Dependency: kpartx for package: dracut-033-360.el7_2.x86_64
--> Running transaction check
---> Package kpartx.x86_64 0:0.4.9-85.el7 will be installed
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: kpartx-0.4.9-85.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: kpartx-0.4.9-85.el7.x86_64
---> Package systemd.x86_64 0:219-19.el7 will be installed
--> Processing Dependency: systemd-libs = 219-19.el7 for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libkmod.so.2(LIBKMOD_5)(64bit) for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libcryptsetup.so.4(CRYPTSETUP_1.0)(64bit) for package: systemd-219-19.el7.x86_64
--> Processing Dependency: dbus for package: systemd-219-19.el7.x86_64
--> Processing Dependency: acl for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libqrencode.so.3()(64bit) for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libkmod.so.2()(64bit) for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libcryptsetup.so.4()(64bit) for package: systemd-219-19.el7.x86_64
--> Running transaction check
---> Package acl.x86_64 0:2.2.51-12.el7 will be installed
---> Package cryptsetup-libs.x86_64 0:1.6.7-1.el7 will be installed
---> Package dbus.x86_64 1:1.6.12-13.el7 will be installed
--> Processing Dependency: dbus-libs(x86-64) = 1:1.6.12-13.el7 for package: 1:dbus-1.6.12-13.el7.x86_64
---> Package device-mapper-libs.x86_64 7:1.02.107-5.el7 will be installed
--> Processing Dependency: device-mapper = 7:1.02.107-5.el7 for package: 7:device-mapper-libs-1.02.107-5.el7.x86_64
---> Package kmod-libs.x86_64 0:20-5.el7 will be installed
---> Package qrencode-libs.x86_64 0:3.4.1-3.el7 will be installed
---> Package systemd-libs.x86_64 0:219-19.el7 will be installed
--> Running transaction check
---> Package dbus-libs.x86_64 1:1.6.12-11.el7 will be updated
---> Package dbus-libs.x86_64 1:1.6.12-13.el7 will be an update
---> Package device-mapper.x86_64 7:1.02.107-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================
Installing:
initscripts x86_64 9.49.30-1.el7 base 429 k
Installing for dependencies:
acl x86_64 2.2.51-12.el7 base 81 k
cryptsetup-libs x86_64 1.6.7-1.el7 base 182 k
dbus x86_64 1:1.6.12-13.el7 base 306 k
device-mapper x86_64 7:1.02.107-5.el7 base 251 k
device-mapper-libs x86_64 7:1.02.107-5.el7 base 304 k
dracut x86_64 033-360.el7_2 updates 311 k
kmod x86_64 20-5.el7 base 114 k
kmod-libs x86_64 20-5.el7 base 47 k
kpartx x86_64 0.4.9-85.el7 base 59 k
qrencode-libs x86_64 3.4.1-3.el7 base 50 k
systemd x86_64 219-19.el7 base 5.1 M
systemd-libs x86_64 219-19.el7 base 356 k
sysvinit-tools x86_64 2.88-14.dsf.el7 base 63 k
Updating for dependencies:
dbus-libs x86_64 1:1.6.12-13.el7 base 151 k
Transaction Summary
============================================================================================================================================================================
Install 1 Package (+13 Dependent packages)
Upgrade ( 1 Dependent package)
Total download size: 7.8 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/base/packages/acl-2.2.51-12.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY ] 0.0 B/s | 0 B --:--:-- ETA
Public key for acl-2.2.51-12.el7.x86_64.rpm is not installed
(1/15): acl-2.2.51-12.el7.x86_64.rpm | 81 kB 00:00:00
(2/15): cryptsetup-libs-1.6.7-1.el7.x86_64.rpm | 182 kB 00:00:00
(3/15): dbus-libs-1.6.12-13.el7.x86_64.rpm | 151 kB 00:00:00
(4/15): dbus-1.6.12-13.el7.x86_64.rpm | 306 kB 00:00:00
(5/15): device-mapper-1.02.107-5.el7.x86_64.rpm | 251 kB 00:00:00
(6/15): device-mapper-libs-1.02.107-5.el7.x86_64.rpm | 304 kB 00:00:00
(7/15): kmod-20-5.el7.x86_64.rpm | 114 kB 00:00:00
(8/15): initscripts-9.49.30-1.el7.x86_64.rpm | 429 kB 00:00:00
(9/15): kmod-libs-20-5.el7.x86_64.rpm | 47 kB 00:00:00
(10/15): kpartx-0.4.9-85.el7.x86_64.rpm | 59 kB 00:00:00
(11/15): qrencode-libs-3.4.1-3.el7.x86_64.rpm | 50 kB 00:00:00
Public key for dracut-033-360.el7_2.x86_64.rpm is not installed 28% [================= ] 433 kB/s | 2.2 MB 00:00:13 ETA
(12/15): dracut-033-360.el7_2.x86_64.rpm | 311 kB 00:00:00
(13/15): systemd-libs-219-19.el7.x86_64.rpm | 356 kB 00:00:00
(14/15): sysvinit-tools-2.88-14.dsf.el7.x86_64.rpm | 63 kB 00:00:00
(15/15): systemd-219-19.el7.x86_64.rpm | 5.1 MB 00:00:01
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.3 MB/s | 7.8 MB 00:00:02
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-1.1503.el7.centos.2.8.x86_64 (@CentOS)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction check error:
file /usr/lib64/libsystemd-daemon.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libsystemd-id128.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libsystemd-journal.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libsystemd-login.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libudev.so.1 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/security/pam_systemd.so from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/emergency.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/initrd.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/rescue.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/dbus-1/system.d/org.freedesktop.login1.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/dbus-1/system.d/org.freedesktop.systemd1.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/pam.d/systemd-user from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/rc.d/rc.local from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/systemd/journald.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/systemd/logind.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/systemd/system.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/xdg/systemd/user from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/systemd/user.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /etc/udev/udev.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/tmpfiles.d/systemd.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/journalctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/bash-completion/completions/journalctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/kernel-install from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/localectl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/bash-completion/completions/localectl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/loginctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/bash-completion/completions/loginctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/bash-completion/completions/systemctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/bash-completion/completions/systemd-analyze from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-ask-password from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-cat from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-coredumpctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-detect-virt from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-inhibit from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-machine-id-setup from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-notify from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-run from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/bash-completion/completions/systemd-run from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-tmpfiles from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-tty-ask-password-agent from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/udevadm from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/bash-completion/completions/udevadm from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/kernel/install.d/90-loaderentry.install from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/rpm/macros.d/macros.systemd from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/sysctl.d/50-default.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/catalog/systemd.catalog from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system-generators/systemd-rc-local-generator from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/basic.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/user/bluetooth.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/console-shell.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/debug-shell.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/user/default.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/dev-hugepages.mount from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/[email protected] from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/graphical.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/initrd-cleanup.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/initrd-fs.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/initrd-parse-etc.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/initrd-root-fs.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/initrd-switch-root.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/local-fs.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/multi-user.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-logind.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-user-sessions.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/network.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/user/paths.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/poweroff.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/user/printer.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/rc-local.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/reboot.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/[email protected] from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/user/shutdown.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/user/smartcard.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/user/sockets.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-initctl.socket from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-udevd-kernel.socket from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/user/sound.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/sys-kernel-config.mount from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/sys-kernel-debug.mount from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/sysinit.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-journal-flush.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-journald.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-sysctl.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-tmpfiles-setup-dev.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-tmpfiles-setup.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-udev-trigger.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-udevd.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-update-utmp.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-fsck-root.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/[email protected] from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-localed.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/[email protected] from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/systemd-tmpfiles-clean.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/time-sync.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/timers.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/user/timers.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/tmp.mount from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-ac-power from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-activate from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-binfmt from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-cgroups-agent from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-coredump from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-fsck from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-initctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-journald from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-localed from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-logind from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-random-seed from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-remount-fs from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-reply-password from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-shutdown from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-shutdownd from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-sleep from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-sysctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-udevd from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-update-utmp from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-user-sessions from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-vconsole-setup from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/tmpfiles.d/legacy.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/tmpfiles.d/tmp.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/accelerometer from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/ata_id from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/cdrom_id from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/collect from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/mtd_probe from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/40-redhat.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/42-usb-hid-pm.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/50-udev-default.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/60-cdrom_id.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/60-keyboard.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/60-persistent-storage.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/70-power-switch.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/70-uaccess.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/90-vconsole.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/99-systemd.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/scsi_id from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/v4l_id from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/pkgconfig/udev.pc from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/polkit-1/actions/org.freedesktop.locale1.policy from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/polkit-1/actions/org.freedesktop.login1.policy from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/polkit-1/actions/org.freedesktop.systemd1.policy from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/systemd/kbd-model-map from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_journalctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_kernel-install from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_localectl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_loginctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_systemctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_systemd-analyze from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_systemd-nspawn from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_systemd-run from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_systemd-tmpfiles from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/share/zsh/site-functions/_udevadm from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
Error Summary
-------------
[root@938743e43bda /]#
Docker Hub provides several authoritative versions of CentOS, but not CentOS 6.5:
https://registry.hub.docker.com/_/centos/tags/manage/
Could we please add a tag/image for this?
I have a requirement to create a docker image based on Centos 6.4, with the current label scheme this is not possible.
Looking at the comments at: https://registry.hub.docker.com/_/centos/ I see I'm not the only one with this issue.
Could minor version labels be provided for the Centos docker containers?
The centos6 base image doesn't contain an important utility, the tar
command.
Steps to reproduce :
Start an interactive bash
session with the docker run
command :
docker pull centos
docker run -i -t centos:centos6 /bin/bash
In opened session, try to execute the tar
command :
bash-4.1# tar
bash: tar: command not found
The RPM containing the tar
command is not installed on the image :
bash-4.1# rpm -q -a | grep ^tar
i've opened https://bugs.centos.org/view.php?id=8148 (possibly wrong place?), but i thought it would be prudent to open an issue in this repo, too, as directed by the instructions at https://registry.hub.docker.com/_/centos/
capabilities are broken in centos7 base docker image.
this means an unprivileged user cannot `ping'.
we can do something like this to prove the missing support:
yum -y install attr
getcap $(which ping)
in the centos7 base image, it returns nothing.
example:
$ docker run --cap-add all --rm -it centos:centos7 bash
[root@254c75830b1d /]# useradd user
[root@254c75830b1d /]# su - user
[user@254c75830b1d ~]$ ping -c1 google.com
ping: icmp open socket: Operation not permitted
what if we make ping setuid?
$ cat Dockerfile
FROM centos:centos7
RUN chmod u+s /usr/bin/ping
RUN useradd user
USER user
$ docker build --rm -t ping .
$ docker run --rm -it ping bash
[user@f8249b2ef089 /]$ ping -c1 google.com
PING google.com (216.58.216.128) 56(84) bytes of data.
64 bytes from sea15s01-in-f0.1e100.net (216.58.216.128): icmp_seq=1 ttl=52 time=6.48 ms
--- google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 6.489/6.489/6.489/0.000 ms
but if we drop setuid from the container, ping breaks again.
(thus proving that "all" is a valid capability to add or drop)
$ docker run --cap-drop all --rm -it ping bash
[user@ec3248d7bd96 /]$ ping -c1 google.com
ping: icmp open socket: Operation not permitted
the comments at https://github.com/CentOS/sig-cloud-instance-build/blob/master/docker/img2tar.sh#L21-L22 sound a little disturbing,
but tar --xattrs-include=security.capability
may be needed.
systemd fails to launch dbus.service.
Dec 17 08:21:11 centos-7-x64 dbus-daemon[41]: Failed to start message bus: Failed to open "/etc/selinux/targeted/contexts/dbus_contexts": No such file or directory
Adding following to dockerfile fixes the issue:
RUN mkdir -p /etc/selinux/targeted/contexts/
RUN echo '<busconfig><selinux></selinux></busconfig>' > /etc/selinux/targeted/contexts/dbus_contexts
I can't figure out why, but network in centos:5 official image is very slow (~25kb/s) on Travis CI (works fine on my workstation). I don't have any problem using tianon/centos:5.10.
The documentation on https://registry.hub.docker.com/_/centos/ says:
Dockerfile for systemd base image:
....
RUN yum -y swap -- remove fakesystemd -- install systemd systemd-libs
....
But this line will cause problem: No Match for argument: fakesystemd
if we use latest centos image.
systemd won't be installed.
I need a 6.7 image with the recent glibc security fix. It's not clear if the 6.7 image contains it - would it be possible to get an updated image if the current one doesn't the fix and either case could you update label for it too?
Thanks.
The issue can be reproduced using the simple Dockerfile shown below.
q (07:09:57) ~/test$ cat Dockerfile.test
FROM docker.io/centos:centos7
RUN yum install -y docker
CMD ["/bin/bash"]
q (07:10:03) ~/test$ docker build -f Dockerfile.test .
This results in errors like these :
Transaction check error:
file /usr/lib64/libsystemd-daemon.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libsystemd-id128.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libsystemd-journal.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libsystemd-login.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libudev.so.1 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/security/pam_systemd.so from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
In case it matters, I am running docker engine 1.9.0 on CentOS 7.1 .
Hi
When i try to create the image frm the first dockerfile mentioned at:
https://github.com/docker-library/docs/tree/master/centos --- Dockerfile for systemd base image
I get the following:
Step 3 : RUN yum -y swap -- remove fakesystemd -- install systemd systemd-libs
---> Running in ac2363ba55ca
Loaded plugins: fastestmirror
No Match for argument: fakesystemd
swap remove fakesystemd
---> 9dde46f4a0dc
Agter going thru the 2nd dockerfile and starting the image with
docker run --privileged -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 local/c7-systemd-httpd
It still gives the error:
Failed to get D-Bus connection: No connection to service manager.
PLease help or suggest a image that has the basic things in plave.
Failed to get D-Bus connection: No connection to service manage
docker version 1.7.0
I use the centos:6 image,and when I exec less to show some file has chinese ,the char display as a markγ
I exec locale
,it show me
LANG=en_US.UTF-8
but the locale -a
show like this
en_US.utf8
I did a diff of the packages between an older centos7 image and the latest one from this week. I found that the following packages have been removed :
ethtool
file
groff-base
iproute
iptables
less
libcroco
libgomp
libmnl
libnetfilter_conntrack
libnfnetlink
libunistring
lzo
snappy
systemd-container
systemd-container-libs
which
Its surprising that some common tools have been removed - which, file, less and networking toolsets like iproute. What is the expectation with the 'standard' centos:centos7 image - is it possible that tools/libraries will change when the same tag is updated? Are images that use centos:centos7 as the base image expected to explicitly ensure that such tools are installed?
This image has been very useful to us and we are thankful to the centos community for making it available.
Hi all,
I'm working on Dockerizing a Ruby Application running on Ruby 2.2.3. The application works with PDF's and the packages required to work with the PDF's are contained within the EPEL repository.
Below is my Dockerfile
FROM centos:6.7
RUN yum update -y
# Install Ruby & Dependencies
RUN yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel
RUN yum install -y libyaml-devel libffi-devel openssl-devel make
RUN yum install -y bzip2 autoconf automake libtool bison iconv-devel sqlite-devel
# Install utils
RUN yum install -y curl
RUN yum install -y wget
RUN yum install -y which
RUN yum install -y tar
# Install RVM
RUN curl -sSL https://rvm.io/mpapis.asc | gpg --import -
RUN curl -L get.rvm.io | bash -s stable
# Configure RVM
RUN source /etc/profile.d/rvm.sh -c rvm reload rvm requirements run rvm install 2.2.3 rvm use 2.2.3 --default
# Prerequisite installation for PDF processing
RUN yum install -y ImageMagick-devel
# Attempt to add EPEL Repository
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Leptonica-devel / tesseract-devel are the packages that require EPEL repository
RUN yum install -y leptonica-devel tesseract-devel
RUN yum install -y libgcj
RUN yum install -y https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-2.02-1.el6.x86_64.rpm
RUN yum install -y ImageMagick
I have been searching for several hours for a way to add the EPEL repository to the CentOS 6.7 base image but without success.
Thanks
see https://bugs.centos.org/view.php?id=7480
I suspect we need to write some docs for people that would like to migrate a vm that uses systemd and aren't ready to go to one container per exe
I know centos7 switched to systemd but I thought "service MYSERVICE start" is still supported for backwards compatibility. That's mentioned in below blog and I see /sbin/service in an official CentOS-7-x86_64-Minimal-1503-01.iso vm.
How do I add the "service" command to a centos7 container?
$ docker run -ti centos:centos6 service
Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]
$ docker run -ti centos:centos7 service
exec: "service": executable file not found in $PATH
Error response from daemon: Cannot start container ...
$ docker run -ti centos:centos7 which service
which: no service in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
http://www.knowledgepia.com/en/k-blog/linux-server/linux-systemd-on-rhel-centos7
To view, start, stop, restart, enable, or disable system services you will use the systemctl instead of the old service command.
Note: for backwards compatibility the old service command is still available in CentOS 7 and it will redirect any command to the new systemctl utility.
I've installed docker on an Ubuntu server with:
apt-get install docker.io ln -sf /usr/bin/docker.io /usr/local/bin/docker
I then run
git clone -b CentOS-5 https://github.com/CentOS/sig-cloud-instance-images.git
cd sig-cloud-instance-images/docker
When I run
docker build -t apache - < Dockerfile
I get the following error message:
Step 2 : ADD centOS-5-20140926_1219-docker.tar.xz /
2014/10/18 01:37:05 centOS-5-20140926_1219-docker.tar.xz: no such file or direct
ory
what's the root passwd and what's it used for? in the centos:6 image ? it failed the 'no-hard-coded-passwords' [3/4] check in centos:6 based official image build
https://travis-ci.org/c0b/docker-erlang-otp/jobs/82874813#L197-L198
'no-hard-coded-passwords' [3/4]...error: crypt password detected for 'root': '$6$QhN6G8YM$LDd5zhqarhgMy6/e1c6wYwbusi4RZBz3lfRNQ1p5VquqtHzIj.Tf9r7cqoaSLgI3FiCPzfePyTBG7omBKv9bF0'
failed
$ docker run -it --rm centos:6
[root@5c1604a2af39 /]# head /etc/shadow
root:$6$QhN6G8YM$LDd5zhqarhgMy6/e1c6wYwbusi4RZBz3lfRNQ1p5VquqtHzIj.Tf9r7cqoaSLgI3FiCPzfePyTBG7omBKv9bF0:16666:0:99999:7:::
bin::15980:0:99999:7:::
daemon::15980:0:99999:7:::
adm::15980:0:99999:7:::
lp::15980:0:99999:7:::
sync:*:15980:0:99999:7:::
...
vs: I found centos:7 is good
$ docker run -it --rm centos:7
[root@a7ffc65820d8 /]# head /etc/shadow
root:locked:16661:0:99999:7:::
bin:*:16372:0:99999:7:::
daemon:*:16372:0:99999:7:::
adm:*:16372:0:99999:7:::
lp:*:16372:0:99999:7:::
sync:*:16372:0:99999:7:::
shutdown:*:16372:0:99999:7:::
Hello, I'm trying to enable the es_ES.utf-8
locale inside a container, but seems not possible right now.
To reproduce:
$ docker run -it --rm centos bash -c 'LC_ALL=es_ES.utf-8; LC_ALL=es_ES; LC_ALL=es; ls /usr/share/i18n/locales/es_ES*; locale -a | grep es || echo "not found es :("'
bash: warning: setlocale: LC_ALL: cannot change locale (es_ES.utf-8): No such file or directory
bash: warning: setlocale: LC_ALL: cannot change locale (es_ES): No such file or directory
bash: warning: setlocale: LC_ALL: cannot change locale (es): No such file or directory
/usr/share/i18n/locales/es_ES /usr/share/i18n/locales/es_ES@euro
not found es :(
If I docker inspect centos:centos6
, it says (in part) "License": "GPLv2"
. Do you mean this to imply that the container itself is GPL'd, with the various things that implies? If I say FROM centos:centos6
in my Dockerfile, can I eventually be obligated to come up with complete source for every package in CentOS to a potential downstream recipient of the container image?
hi!
We build the rpms for the docker project in various containers for each distro version we are releasing. Something changed in the centos 7 container we build in and now when the rpm build script tries to install the dependencies to compile the rpm it gets an error that they all conflict with the already installed "systemd-container"
I need a way to remove that package or force install over it.....
This is just a minor issue, but it would be nice if the Dockerfiles specified CMD ["/bin/bash"]
like the other base images.
Preferably include the actual scripts so we can play along at home. :-)
When trying to build an image based on this Dockerfile:
FROM centos:latest
MAINTAINER [email protected]
# systemd (Source: https://github.com/docker-library/docs/tree/master/centos#systemd-integration)
ENV container docker
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*; \
rm -f /etc/systemd/system/*.wants/*; \
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*; \
rm -f /lib/systemd/system/anaconda.target.wants/*;
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/usr/sbin/init"]
# Apache
RUN yum install -y httpd httpd-devel
RUN chkconfig httpd on
RUN apachectl start
the last step fails:
Step 9 : RUN apachectl start
---> Running in 70e7de9def6a
Failed to get D-Bus connection: Operation not permitted
The command '/bin/sh -c apachectl start' returned a non-zero code: 1
The lines below the systemd comment have been copied from the docs today (see reference in the comment)
Hello,
I am having an issue installing libudev-devel on the centos:centos7 Docker.
My output looks like this:
[root@704151a1f239 /]# yum install libudev-devel
...
Dependencies Resolved
====================================================================================================================
Package Arch Version Repository Size
====================================================================================================================
Installing:
systemd-devel x86_64 208-20.el7_1.5 updates 153 k
Installing for dependencies:
acl x86_64 2.2.51-12.el7 base 81 k
cryptsetup-libs x86_64 1.6.6-3.el7 base 179 k
dbus x86_64 1:1.6.12-11.el7 base 306 k
device-mapper x86_64 7:1.02.93-3.el7_1.1 updates 209 k
device-mapper-libs x86_64 7:1.02.93-3.el7_1.1 updates 259 k
fipscheck x86_64 1.4.1-5.el7 base 21 k
fipscheck-lib x86_64 1.4.1-5.el7 base 11 k
kmod x86_64 14-10.el7 base 78 k
kmod-libs x86_64 14-10.el7 base 46 k
qrencode-libs x86_64 3.4.1-3.el7 base 50 k
systemd x86_64 208-20.el7_1.5 updates 2.6 M
systemd-libs x86_64 208-20.el7_1.5 updates 161 k
tcp_wrappers-libs x86_64 7.6-77.el7 base 66 k
Transaction Summary
====================================================================================================================
Install 1 Package (+13 Dependent packages)
Total download size: 4.2 M
Installed size: 15 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/base/packages/cryptsetup-libs-1.6.6-3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for cryptsetup-libs-1.6.6-3.el7.x86_64.rpm is not installed
(1/14): cryptsetup-libs-1.6.6-3.el7.x86_64.rpm | 179 kB 00:00:01
(2/14): fipscheck-1.4.1-5.el7.x86_64.rpm | 21 kB 00:00:00
Public key for device-mapper-libs-1.02.93-3.el7_1.1.x86_64.rpm is not installed
(3/14): device-mapper-libs-1.02.93-3.el7_1.1.x86_64.rpm | 259 kB 00:00:02
(4/14): acl-2.2.51-12.el7.x86_64.rpm | 81 kB 00:00:02
(5/14): fipscheck-lib-1.4.1-5.el7.x86_64.rpm | 11 kB 00:00:00
(6/14): kmod-libs-14-10.el7.x86_64.rpm | 46 kB 00:00:00
(7/14): device-mapper-1.02.93-3.el7_1.1.x86_64.rpm | 209 kB 00:00:02
(8/14): qrencode-libs-3.4.1-3.el7.x86_64.rpm | 50 kB 00:00:00
(9/14): systemd-devel-208-20.el7_1.5.x86_64.rpm | 153 kB 00:00:00
(10/14): kmod-14-10.el7.x86_64.rpm | 78 kB 00:00:01
(11/14): tcp_wrappers-libs-7.6-77.el7.x86_64.rpm | 66 kB 00:00:00
(12/14): dbus-1.6.12-11.el7.x86_64.rpm | 306 kB 00:00:03
(13/14): systemd-libs-208-20.el7_1.5.x86_64.rpm | 161 kB 00:00:01
(14/14): systemd-208-20.el7_1.5.x86_64.rpm | 2.6 MB 00:00:05
--------------------------------------------------------------------------------------------------------------------
Total 558 kB/s | 4.2 MB 00:00:07
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-1.1503.el7.centos.2.8.x86_64 (@CentOS)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction check error:
file /usr/lib64/libsystemd-daemon.so.0.0.10 from install of systemd-libs-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libsystemd-id128.so.0.0.26 from install of systemd-libs-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libsystemd-journal.so.0.11.3 from install of systemd-libs-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libsystemd-login.so.0.9.1 from install of systemd-libs-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/libudev.so.1.4.0 from install of systemd-libs-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /usr/lib64/security/pam_systemd.so from install of systemd-libs-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
file /etc/rc.d/rc.local from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/journalctl from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/localectl from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/loginctl from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemctl from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-ask-password from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-cat from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-coredumpctl from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-detect-virt from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-inhibit from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-machine-id-setup from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-notify from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-run from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-tmpfiles from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/systemd-tty-ask-password-agent from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/bin/udevadm from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system-generators/systemd-rc-local-generator from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/system/console-getty.service from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-ac-power from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-activate from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-binfmt from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-cgroups-agent from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-coredump from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-fsck from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-initctl from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-journald from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-localed from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-logind from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-multi-seat-x from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-random-seed from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-remount-fs from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-reply-password from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-shutdown from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-shutdownd from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-sleep from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-sysctl from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-udevd from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-update-utmp from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-user-sessions from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/systemd/systemd-vconsole-setup from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/accelerometer from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/ata_id from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/cdrom_id from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/collect from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/mtd_probe from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/rules.d/40-redhat.rules from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/scsi_id from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
file /usr/lib/udev/v4l_id from install of systemd-208-20.el7_1.5.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
Error Summary
-------------
It seems the issue is with libudev-devel trying to install regular systemd instead of container systemd. The weird thing is that I was able to install this no problem about a month ago, using the same docker configuration.
Any ideas?
Thanks,
Bill Katsak
/var/lock is a symlink to /run/lock which is not created in the base container image.
$ docker run -it --rm centos:7 which
exec: "which": executable file not found in $PATH
I need to execute some shell script which need to use "which" command. And now, when I execute the script in the container I get errors.
Our organization actually runs the centos:centos6 images as pseudo-VMs by running /sbin/init, but it looks like this capability broke recently now that upstart isn't being packaged in the image. Any chance at getting this back?
I must be missing something, but why running the container from the 'centos:7' image gives me the following output for "uname -r"
2.6.32-504.8.1.el6.x86_64
However, centos-release gives me 7.0.1406 (Core)
The docs say:
By default, the CentOS containers are built using yum's nodocs option, which helps reduce the size of the image. If you install a package and discover files missing, please comment out the line tsflags=nodocs in /etc/yum.conf and reinstall your package.
I struggled to find an easier solution and came to this:
RUN yum -y install package && yum -y --setopt tsflags= reinstall package
It will install package
and its dependencies without docs, and then reinstall package
with its docs only.
It should be documented IMHO in the main docs. It's much clearer than programatically changing /etc/yum.conf
in the Dockerfile
.
LABEL name="CentOS Base Image"
vendor="CentOS"
license="GPLv2"
build-date="2015-12-23"
should be changed.
Document https://docs.docker.com/engine/userguide/labels-custom-metadata/ proposes metadata standard: "To prevent naming conflicts, Docker recommends using namespaces to label keys using reverse domain notation."
Issue is that when you build something on top of the CentOS, then all LABELs are a mess. You can not find correct information and worst is that, if someone is using e.g LABEL name=xxx it overrides CentOS version and you loose valid OS information.
Here is proposal:
LABEL org.centos.name="CentOS Base Image"
org.centos.vendor="CentOS"
org.centos.license="GPLv2"
org.centos.build-date="2015-12-23"
I'm using docker with CentOS 7 and my Dockerfile I'm trying to install "supervisor" package (yum -y install supervisor) but get this error:
Rpmdb checksum is invalid: dCDPT(pkg checksums): bind-libs.x86_64 32:9.9.4-14.el7_0.1 - u
I tried already:
rpm --rebuilddb
yum clean all
yum -y install supervisor --nogpgcheck
Hello,
It seems that recent systemd-container changes broke the latest images.
I used to have in my app Dockerfile
RUN
yum -y install
librsvg2-tools
librsvg2-tools
dejavu-sans-fonts
dejavu-serif-fonts
The image build is broken with following error:
Transaction check error:
file /usr/lib64/libsystemd-daemon.so.0.0.10 from install of systemd-libs-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-libs-208.20-4.el7.centos.x86_64
file /usr/lib64/libsystemd-id128.so.0.0.26 from install of systemd-libs-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-libs-208.20-4.el7.centos.x86_64
file /usr/lib64/libsystemd-journal.so.0.11.3 from install of systemd-libs-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-libs-208.20-4.el7.centos.x86_64
file /usr/lib64/libsystemd-login.so.0.9.1 from install of systemd-libs-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-libs-208.20-4.el7.centos.x86_64
file /usr/lib64/libudev.so.1.4.0 from install of systemd-libs-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-libs-208.20-4.el7.centos.x86_64
file /usr/lib64/security/pam_systemd.so from install of systemd-libs-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-libs-208.20-4.el7.centos.x86_64
file /etc/rc.d/rc.local from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/journalctl from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/localectl from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/loginctl from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemctl from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-ask-password from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-cat from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-coredumpctl from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-detect-virt from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-inhibit from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-machine-id-setup from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-notify from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-run from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-tmpfiles from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/systemd-tty-ask-password-agent from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/bin/udevadm from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/system-generators/systemd-rc-local-generator from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-ac-power from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-activate from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-binfmt from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-cgroups-agent from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-coredump from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-fsck from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-initctl from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-journald from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-localed from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-logind from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-multi-seat-x from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-random-seed from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-remount-fs from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-reply-password from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-shutdown from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-shutdownd from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-sleep from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-sysctl from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-udevd from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-update-utmp from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-user-sessions from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/systemd/systemd-vconsole-setup from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/udev/accelerometer from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/udev/ata_id from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/udev/cdrom_id from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/udev/collect from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/udev/mtd_probe from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/udev/scsi_id from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
file /usr/lib/udev/v4l_id from install of systemd-208-20.el7_1.2.x86_64 conflicts with file from package systemd-container-208.20-4.el7.centos.x86_64
It would be nice to have i386 images for CentOS 5 and 6 from this official channel.
When following the systemd build guide as documented on Docker Hub and running a "yum -y install httpd", the httpd service is installed into systemd and starts.
However, an "rpm -qa" does not report httpd as being installed. As a result, when attempting to install modules from EPEL, it results in an attempted re-installation of httpd as a dependency...
Example segment of Dockerfile showing my process for building the container:
FROM centos:7
ENV container docker
RUN yum -y swap -- remove fakesystemd -- install systemd systemd-libs
RUN yum -y update; yum clean all; \
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;
RUN yum -y install httpd
Output from build process shows the following error returned while installing the httpd package:
Installing : httpd-2.4.6-31.el7.centos.x86_64 86/107
Error unpacking rpm package httpd-2.4.6-31.el7.centos.x86_64
error: unpacking of archive failed on file /usr/sbin/suexec: cpio: cap_set_file
However, once the container is started, systemd shows that httpd is installed and running:
[root@36f81d32f9ff /]# systemctl status httpd
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Drop-In: /run/systemd/system/httpd.service.d
ββ00-docker.conf
Active: active (running) since Mon 2015-08-10 18:12:51 UTC; 33min ago
Main PID: 71 (httpd)
Status: "Total requests: 83; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
ββ 71 /usr/sbin/httpd -DFOREGROUND
ββ109 /usr/sbin/httpd -DFOREGROUND
ββ110 /usr/sbin/httpd -DFOREGROUND
ββ111 /usr/sbin/httpd -DFOREGROUND
ββ112 /usr/sbin/httpd -DFOREGROUND
ββ113 /usr/sbin/httpd -DFOREGROUND
ββ187 /usr/sbin/httpd -DFOREGROUND
ββ188 /usr/sbin/httpd -DFOREGROUND
ββ194 /usr/sbin/httpd -DFOREGROUND
ββ195 /usr/sbin/httpd -DFOREGROUND
ββ196 /usr/sbin/httpd -DFOREGROUND
Aug 10 18:12:50 36f81d32f9ff systemd[1]: Starting The Apache HTTP Server...
Aug 10 18:12:50 36f81d32f9ff httpd[71]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.50. Set the 'ServerName' directive globally to suppress this message
Aug 10 18:12:51 36f81d32f9ff systemd[1]: Started The Apache HTTP Server.
Even though it's not present in the RPM database via "rpm -qa"
[root@36f81d32f9ff /]# rpm -qa | grep httpd
httpd-tools-2.4.6-31.el7.centos.x86_64
[root@36f81d32f9ff /]#
When I start a contain with CentOS7, The cmd: yum update return an error:
How to fix it.
But if I use it as a base to build another image, then it is ok.
But I also met the problem as the #15
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Insufficient space in download directory /var/cache/yum/x86_64/7/base
* free 0
Here's what I see at /etc/sysconfig/iptables
on a fresh install:
$ docker run my/tag cat /etc/sysconfig/iptables
# sample configuration for iptables service
# you can edit this manually or use system-config-firewall
# please do not ask us to add additional ports/services to this default configuration
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
I need 80
for a web server. Based on what I've read, I'd want to use:
firewall-cmd --zone=public --add-service=http --permanent
Unfortunately there's no firewall-cmd that I can find:
$ docker run my/tag which firewall-cmd
which: no firewall-cmd in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
There's an /sbin/iptables
; however, there's no service command for a IP tables restart for my rules to take effect. Fortunately, /sbin/service
comes with installing initscripts
.
Although you can't change iptables
rules during a Docker build moby/moby#1916, you can run commands after. I'm using that to update my iptables rules, but on restart I get the following error:
$ docker run my/tag service iptables restart
Redirecting to /bin/systemctl restart iptables.service
/usr/sbin/service: line 79: /bin/systemctl: No such file or directory
There is no /sbin/systemctl
command
$ docker run my/tag which systemctl
which: no systemctl in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
And you cannot install systemd
because of fakesystemd
$ docker run my/tag yum install -y systemd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.unifiedlayer.com
* epel: mirrors.kernel.org
* extras: mirror.nwresd.org
* remi: mirrors.thzhost.com
* remi-php55: mirrors.thzhost.com
* remi-php56: mirrors.thzhost.com
* remi-test: mirrors.thzhost.com
* rpmforge: mirror.teklinks.com
* updates: mirror.san.fastserv.com
Resolving Dependencies
--> Running transaction check
---> Package systemd.x86_64 0:208-11.el7_0.2 will be installed
--> Processing Dependency: libcryptsetup.so.4(CRYPTSETUP_1.0)(64bit) for package: systemd-208-11.el7_0.2.x86_64
--> Processing Dependency: dbus for package: systemd-208-11.el7_0.2.x86_64
--> Processing Dependency: acl for package: systemd-208-11.el7_0.2.x86_64
--> Processing Dependency: libwrap.so.0()(64bit) for package: systemd-208-11.el7_0.2.x86_64
--> Processing Dependency: libqrencode.so.3()(64bit) for package: systemd-208-11.el7_0.2.x86_64
--> Processing Dependency: libcryptsetup.so.4()(64bit) for package: systemd-208-11.el7_0.2.x86_64
--> Running transaction check
---> Package acl.x86_64 0:2.2.51-12.el7 will be installed
---> Package cryptsetup-libs.x86_64 0:1.6.3-2.el7 will be installed
---> Package dbus.x86_64 1:1.6.12-8.el7 will be installed
---> Package qrencode-libs.x86_64 0:3.4.1-3.el7 will be installed
---> Package tcp_wrappers-libs.x86_64 0:7.6-77.el7 will be installed
--> Processing Conflict: fakesystemd-1-16.el7.centos.noarch conflicts systemd
--> Finished Dependency Resolution
Error: fakesystemd conflicts with systemd-208-11.el7_0.2.x86_64
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
fakesystemd-1-16.el7.centos.noarch has installed conflicts systemd: fakesystemd-1-16.el7.centos.noarch
Here's what the output of iptables -nvL --line-numbers
looks like on my fresh image:
$ docker run -privileged my/tag iptables -nvL --line-numbers
Warning: '-privileged' is deprecated, it will be replaced by '--privileged' soon. See usage.
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
In the kickstart scripts, the firewall is disabled https://github.com/CentOS/sig-cloud-instance-build/blob/master/docker/centos-7.ks#L7 and firewalld is installed https://github.com/CentOS/sig-cloud-instance-build/blob/master/docker/centos-7.ks#L36 - so perhaps I shouldn't need to open any firewall ports? Firewalld is indeed removed later on https://github.com/CentOS/sig-cloud-instance-build/blob/master/docker/centos-7.ks#L62
# firewalld is necessary for building on centos7 but it is not
# necessary in the image. remove it and its requirements.
Update I'm so-far able to confirm that the firewall is down and ports are open when using netcat (nc -l 80
) and SimpleServer (python -m SimpleHTTPServer 80
) as a CMD
to run on centos:latest
. My issues appear to be because of how I was running the container (boot2docker
) on my machine
On Dockerfile basic with one line: "FROM centos" , I 've build and run images. But on terminal
[root@9797bf0f50ae /]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
[root@9797bf0f50ae /]# systemctl
bash: systemctl: command not found
[root@9797bf0f50ae /]#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.