![]() ![]() $ docker run -it -privileged -name=rk7 c7_systemd Any directions from here ? I’ve to open another terminal & stop the container to get this terminated. ![]() (c7-systemd can be replaced with other name)ĭocker run -itd -privileged -name=yourName c7-systemdįollowing update, I’ve tried it & when i execute it, the init phase gets hung and doesn’t respond. Then build the container using in the dir you have created the file (be sure no other files are inside, as they will be taken into the context and may cause troubles )ĭocker build -rm -t c7-systemd. ![]() RUN (cd /lib/systemd/system// for i in do || rm -f $i done) Hi, if you go to docker hub of centos7 release you are using there is instruction on how to run the centos with systemctl enabled.In short: What should I do to get “systemctl status” to work in a Docker container? Reinstalling (or upgrading) systemd did not work. I don’t know if the problem is with how I created the Docker container. I created a Docker container with a “docker run” … “-v /sys/fs/cgroup:/sys/fs/cgroup:ro” option. When I left out the “-p 80:80” option in my Docker run command, the new container had the same problem. When I used the “-p 80:80” option, the Docker run command failed to create a new container. I tried creating a Docker container with the -privileged flag. When I used the “-p 80:80” option, the Docker run command failed. I get the same error: “Failed to get D-Bus connection: operation not permitted.” I see that systemd version 219-19.el7_2.7 is installed. I then used yum remove systemd just to determine the version. I choose “N” to not actually remove systemd. I see that systemd version 219-19.el7_2.4 has been installed. I removed the /etc/yum/protected.d/nf file. When I issue “systemctl status” I get results “Failed to get D-Bus connection: operation not permitted.” The command “systemctl status” is not working. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |