Comments (5)
I don't understand why you're attempting to start systemd as an interactive container. What is the use case for doing this?
from sig-cloud-instance-images.
Hi @jperrin, thanks for your comment
I just run it interactively to check the boot log and do some tests. In reality I run it as a daemon container.
In the old version it started well, but after the update there are some errors during boot as I mentioned above, the remount-fs and network service failed to start
systemctl status network
● network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network)
Active: failed (Result: exit-code) since Thu 2015-12-17 03:33:34 UTC; 12min ago
Docs: man:systemd-sysv-generator(8)
Dec 17 03:33:33 5aff87343190 systemd[1]: Starting LSB: Bring up/down networking...
Dec 17 03:33:34 5aff87343190 network[61]: Bringing up loopback interface: [ OK ]
Dec 17 03:33:34 5aff87343190 network[61]: Bringing up interface ens3: ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device ens3 does not seem to be present, delaying initialization.
Dec 17 03:33:34 5aff87343190 network[61]: [FAILED]
Dec 17 03:33:34 5aff87343190 systemd[1]: network.service: control process exited, code=exited status=1
Dec 17 03:33:34 5aff87343190 systemd[1]: Failed to start LSB: Bring up/down networking.
Dec 17 03:33:34 5aff87343190 systemd[1]: Unit network.service entered failed state.
Dec 17 03:33:34 5aff87343190 systemd[1]: network.service failed.
For network service issue, there is a redundant ifcfg-ens3, when removing this file network service can start well. However for remount-fs I cant find solution
In my Dockerfile, I has installed some packages
RUN yum install -y epel-release;
RUN yum -y update && yum clean all \
&& yum install -y --enablerepo=cr nginx \
&& yum install -y gettext pwgen initscripts sudo git ntp rsyslog autofs iptables iptables-services firewalld crond net-tools openssh-clients abrt-cli traceroute vim bind-utils openssh-server;
from sig-cloud-instance-images.
If you're running the container based on 7.2.1511, there's no point to using the cr repo. It simply contained packages for 7.2.1511 before it was officially released. As I understand it, systemd still requires --privileged when running inside a container.
The "old" container used systemd-container, which was a reduced-functionality package, and it's been deprecated upstream. This is why it was replaced with systemd. If you feel this is a systemd issue, I would encourage you to file a bug at bugzilla.redhat.com against rhel 7.2
from sig-cloud-instance-images.
The package list you're installing seems to imply that you're using this as fake virt, not generally what's envisioned with the container concept.
from sig-cloud-instance-images.
Hi @jperrin, I tried with --privileged before but the boot process throwed more errors, for the old image it worked well.
--The package list you're installing seems to imply that you're using this as fake virt--
Yes, my app has run on VM before, Im trying to migrate it to docker container. Since it is started when booting system by systemd and requires some other facilities so I need to install that package list.
Thanks for your support.
from sig-cloud-instance-images.
Related Issues (20)
- download linux centos
- Centos:7 image contains old kernel with security vulnerabilities HOT 2
- Linux Permission Issue
- CentOS-8-Stream docker file needs update
- centos7.8.2003 arm64 build
- When will CentOS 8.4.2105 be available on dockerhub? HOT 2
- will there a new centos 7 image with the security issues fixed? HOT 1
- remove ethtool
- When will CentOS 8.5.2111 be available on quay.io? HOT 4
- all cmake make
- centos 8 repo mirrorlists are deprecated HOT 12
- CentOS 7: vault.centos.org now has HSTS enabled, but default repo config uses `http` HOT 1
- Suggestion: Update the CentOS source IP address to the latest version
- centos 7 image vulnerabilities
- Build CentOS image with ssh enabled. FAILED! HOT 1
- How to upgrade the kernel of centos7 in a container
- `GLIBC_2.29` not found
- [Feature Request] yum install OpenSSL3 HOT 1
- Support for CentOS 9 docker image HOT 1
- I can't update the Centos7 image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sig-cloud-instance-images.