I’m having trouble figuring out how to connect to an SFTP server I want to run as part of my docker setup. Here is the configuration that I"m using to launch the SFTP container:
- run:
name: Run Docker FTP test server
command: |
docker run --restart=always \
-p 2222:22 \
--name sftp_test_server \
-d atmoz/sftp foo:pass:::from_no
I’m having trouble connecting to it from my main app. How do I find the hostname for this container and make sure it’s in the same network? When my test suite runs my app can’t find this service.