dockerでsystemdを動かす
経緯
code:bash
docker run -it centos:7 bash
yum install -d httpd
systemctl status httpd
手順
dockerを起動するときの指定
code:bash
docker run --privileged -d --name test_linux centos:7 /sbin/init
docker exec -it test_linux bash
dockerコンテナ内でのコマンド
code:bash
yum install -d httpd
systemctl status httpd
参考