Docker Community Forums

Share and learn in the Docker community.

After stop my container,I use service start ssh but show Failed to connect to bus: No such file or directory

Hi!
I use container ubtuntu:latest
I want to use systemctl in my docker container,so I do as follow

docker run -itd -p 8087:80 -p 2222:22 --privileged=true --name aria2 myContainer /sbin/init
docker exec -it aria2 /bin/bash

I can use systemtcl after docker run
but after I restart it and executue

docker stop aria2
docker start aria2
docker exec -it aria2 /bin/bash

systemctel can’t use and show message:

Failed to connect to bus: No such file or directory

How can I use systemtcl after restart my container?Thanks!