Question

External connection to docker container in AppPlatform

Posted September 17, 2021 96 views
DockerDigitalOcean App Platform

Is it possible to connect to a docker container that is running in App Platform from outside of the digital ocean eco system?

Just to give an example I want to scp a file that is uploaded in the running container on my local machine.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hello,

I believe that this is not possible as of the time being. You could expose the file and download it via HTTP directly.

Alternatively, you can access the file directly on the App platform via the Web console.

As another option, if you are using the DigitalOcean Spaces to store your static files, you could download the file by connecting to your S3 bucket with a tool like CyberDuck.

Best,
Bobby

  • Hi thanks, I am currently implementing a download over HTTP.

    Yes I can access the file via the web console but this does not suite my needs.

    Initially I was looking for a quick and dirty solution just to retrieve some data for manual analysis but I can’t find one.

    • Hi there,

      One quick and dirty solution that comes to my mind would be to access your component via the web console, then use the mv or cp commands to move the file to your public folder, and then access the file directly via your browser or an HTTP client to download it.