Run the container as a daemon
$ docker run -d --name systemd-ubuntu --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro jrei/systemd-ubuntu
or if it doesn't work
$ docker run -d --name systemd-ubuntu --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro jrei/systemd-ubuntu
- Docker loading kernel modules
$ docker run -d --name systemd-ubuntu --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules jrei/systemd-ubuntu
- Docker loading kernel modules
Enter to the container
$ docker exec -it systemd-ubuntu sh
Remove the container
$ docker rm -f systemd-ubuntu
'tech' 카테고리의 다른 글
21/04/02 WSL2 기반 docker 사용시 vmmem 프로세스 메모리 소모량 줄이기 (0) | 2021.04.02 |
---|---|
21/04/02 ueransim docker 환경 구성 (0) | 2021.04.02 |
21/04/02 kernel 5.0.0-23-generic, gtp5g compile (0) | 2021.04.02 |
21/04/01 (Ubuntu) Update kernel version: 5.0.0-23-generic (free5gc UPF) (0) | 2021.04.01 |
21/04/01 Windows 10 Docker 환경 구성 - Centos 7에서 systemctl 사용하기 (0) | 2021.04.01 |