develog

[docker] centos 8, systemctl, System has not been booted with systemd as init system (PID 1). Can't operate. 본문

Dev/docker

[docker] centos 8, systemctl, System has not been booted with systemd as init system (PID 1). Can't operate.

냐옴 2022. 2. 9. 11:04

 

도커로 centos:8 이미지 실행 후

# Dockerfile
FROM centos:8

systemctl start ssh 실행시 오류 발생

[root@795fdf8be494 /]# systemctl start ssh
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

 

해결 참고

https://blog.jojonari.dev/entry/ErrorSystem-has-not-been-booted-with-systemd-as-init-system-PID-1-Cant-operate

 

[Error]System has not been booted with systemd as init system (PID 1). Can't operate.

도커에서 systemctl 사용시 아래와 같은 에러를 볼수 있다. * 시스템이 초기화 시스템 (PID 1)로 systemd로 부팅되지 않았습니다. 작동 할 수 없습니다 [root@fb00f4e75552 bin]# systemctl start nginx System ha..

blog.jojonari.dev

 

'Dev > docker' 카테고리의 다른 글

[docker] docker command docs  (0) 2022.02.11
[docker] privileged  (0) 2022.02.09
docker ubuntu ssh 접속  (0) 2022.02.08
[docker] Dockerfile 명령어  (0) 2022.02.07
[docker] ubuntu 실행  (0) 2022.02.05
Comments