Category : portforwarding

I have an nginx container running in the host of my Plesk with this docker compose configuration: # docker-compose.yml […] web: build: context: . dockerfile: ./docker/web/DockerFile depends_on: – app ports: – 1080:80 – 10443:443 volumes: – .:/var/www/app restart: always It was ok if I access to the host using the specific port: https://example.com:10443 But I ..

Read more

From the Docker documentation: –publish or -p flag. Publish a container’s port(s) to the host. –expose. Expose a port or a range of ports. –link. Add link to another container. Is a legacy feature of Docker. It may eventually be removed. I am using docker-compose with several networks. I do not want to publish any ..

Read more

OS: Ubuntu 20.04 LTS tried this (minimal way to reproduce), previous day it works normally: docker run –name nginx1 -p 8089:80 -d nginx:alpine works normally: docker ps CONTAINER ID IMAGE COMMAND CREATED 74faabf44b8e nginx:alpine "/docker-entrypoint.…" 5 minutes ago STATUS PORTS NAMES Up 5 minutes 0.0.0.0:8089->80/tcp, :::8089->80/tcp nginx1 curl inside docker works: docker exec -it 74faabf44b8e ..

Read more

I have a docker container where the port mapping doesn’t work anymore. On the host: 3b0d28970e58 docker.software-univention.de/zammad-zammad-nginx:3.6.0-42 "/docker-entrypoint.…" 24 minutes ago Up 3 minutes 0.0.0.0:40001->80/tcp zammad_zammad-nginx_1 curl http://127.0.0.1:40001 curl: (56) Recv failure: Die Verbindung wurde vom Kommunikationspartner zurückgesetzt curl http://172.16.0.249:40001 curl: (7) Failed to connect to 172.16.0.249 port 40001: Keine Route zum Zielrechner ping 172.16.0.249 ..

Read more

When I connect from my PC from my network to my local Ubuntu 20 server with docker sail mysql container on 192.168.114:3306 connection establishes. But when I connect to my external ip 46.39.255.219:3306 that is port forwarded to 192.168.114:3306 connection is refused(SQLSTATE[HY000] [2002] Connection refused). I don’t use UFW on my Ubuntu 20 server. My ..

Read more