Open ghost opened 2 years ago
Just rewrite instruction on Dockerfile. from RUN to CMD. Sorry, i'm not careless about instruction.
CMD service ssh start ; sleep infinity
But when run that image, always show error output like this:
When i start ssh with command service ssh start
Failed to get D-Bus connection: Operation not permitted
And then i rewrite Dockerfile from scratch again, follow this video. And run again with this new image. But error output show like this:
Failed to get D-Bus connection: No such file or directory
And ya, both of them can't i ssh from local. Error output like this:
ssh: connect to host 172.17.0.4 port 22: Connection refused
This is my Dockerfile
I install initscripts follow with this instruction for service command but not work anymore while building. Like below.
Error output when building image
I know that systemd can't run on docker. But, how to solve this? Thank you!