Connecting FTP container works with docker-compose and not with docker run
问题 I need to connect FTP server from my_go_app container. When I do it from it from docker compose, I can do it with: apk add lftp lftp -d ftp://julien:test@ftpd-server and it connects well but when I try to run my container via docker run , I cannot connect anymore to FTP server Here the command I use: docker run --name my_go_app --rm -v volume:/go my_go_app:exp --network=my_go_app_network --env-file ./test.env Here is the working docker-compose.yml version: '3' services: my_go_app: image: my