I'm wondering whether the GOGS Docker container is also running an the OpenSSH daemon inside the container?
Asked
Active
Viewed 172 times
1
-
You just need to check the Dockerfile, do you see Ssh installed, or does the line FROM show an image coming with Ssh? Anyway you can add it and `docker commit` the new image – user2915097 Mar 16 '16 at 05:27
-
1You should read this post wrote by a Docker engineer: https://jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/ – Auzias Mar 16 '16 at 07:04
-
Yes I am aware of the post and it's a good one. Gogs uses S6 I believe to run multiple processes, however I'm still getting up to speed on S6, thus I'm looking insight into how to interpret the Gogs docker build. – Ole Mar 16 '16 at 13:06
2 Answers
0
The gogs container Dockerfile uses alpine, which itself does not include Openssh.
See this Dockerfile as an example of adding openssh on top of alpine.

VonC
- 1,262,500
- 529
- 4,410
- 5,250
0
Yes - the Gogs Docker Container runs the openssh daemon.
To see this first start the gogs docker container with the name gogs
and then run docker top gogs
. This will display a table showing all the processes running in the gogs container.

Ole
- 41,793
- 59
- 191
- 359