2

I am using Heroku with Docker. I need to upload files in /public/pictures and I want to do it via sftp or scp. I tried to expose the port 22 and access to the container with this comment :

ssh app@application.herokuapp.com

It do nothing.

Is there a way to do it? Is there a better way?

Dougui
  • 6,952
  • 6
  • 46
  • 84
  • In general you shouldn't use ssh to access your container. You can use `docker exec container /bin/bash` to access your container. – xuhdev Jun 29 '15 at 21:28

1 Answers1

0

As documented in "If you run SSHD in your Docker containers, you're doing it wrong!", most containers don't include sshd.

docker exec (as I mentioned here) will open a new shell and allow you to access the container.

VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755