Closed ulfgebhardt closed 5 years ago
This is generally unrecommended:
https://blog.docker.com/2014/06/why-you-dont-need-to-run-sshd-in-docker/
@jonleibowitz
The documentation you linked is about docker
, not doctl
.
Even the linked documentation uses SSH to connect to the host:
What about remote access?
If you need to enter a container from a remote host, you have (at least) two ways to do it:
SSH into the Docker host, and use nsenter;
SSH into the Docker host, where a special key with force a specific command (namely,nsenter).
I am referring to the docu of doctl
doctl also simplifies actions without an API endpoint. For instance, it allows you to SSH to your Droplet by name:
doctl compute ssh <droplet-name>
See: https://github.com/digitalocean/doctl#examples
And this is not working out of the box, even tho it is documented, since the openssh package is missing. In the dockerfile provided in this issue the openssh package is installed.
RUN apk add --no-cache curl openssh
Possibly related Issues:
The Dockerfile of this Repository does not allow the usage of the SSH command!
Openssh is missing.
here is a working example:
Src: https://github.com/demokratie-live/democracy-development/blob/master/doctl
And here is how you buidl and call it (./doctl referes to the dockerfile):
src: https://github.com/demokratie-live/democracy-development/blob/master/.travis.yml#L78
Please correct your docker file to at least include the openssh package - even better would be to provide something like the above as seperate file including instructions