Questions tagged [ports]
The ports tag has no usage guidance.
17
questions
0
votes
1answer
49 views
Docker: Let containers communicate to each other but don't expose to internet
I was recently shocked to find out that docker writes its own iptables rules and ignores ufw bindings completely. I had blocked all ports using the ufw deny incoming command and then selectively ...
0
votes
0answers
58 views
Is the MySQL Command-Line Client on alpine or another minimalist container?
This seems not wholly unreasonable:
root $
root $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
root $
root $...
0
votes
1answer
526 views
how to connect to a MySQL database in a docker container?
starting up the default mysql server:
root $
root $ docker run --name mysql -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password mysql/mysql-server:latest
...
0
votes
2answers
62 views
How do I make a redis container accessible through bridge networking from the host?
I'd like to be able to connect directly to the redis container below:
root $
root $ docker images redis
REPOSITORY TAG IMAGE ID CREATED SIZE
redis ...
0
votes
1answer
27 views
What can I use to forward a conection to port 3006 on the bastion to an RDS database?
Forwarding a port 3006 database connection from a bastion server to a RDS database?
Trying to find the answer online I came across the term Proxy jump but can't find anything on proxy jump for 3006 ...
1
vote
1answer
241 views
Docker bridge network Configuration for containers
I have an Angular application deployed in the container . If I log in to the container I can curl to the port 4200.
I have mapped to port 9001 to connect from my host .
But I can't curl from my host ...
1
vote
1answer
250 views
Running services on different ports in development environment and production environment
A bit of an odd question I think but here goes: I have a couple of services running in an application that I'm building. In production each service is containerised and lives on its own server. But on ...
1
vote
1answer
77 views
How can I expose port 3389 using a secure approach
Within our legacy infrastructure we need to keep port 3389 exposed so that we can remote desktop into this server (note that we can't go back and utilize IaC to prevent this).
We currently restrict ...
0
votes
1answer
103 views
Is there a way to map ports two docker container
Let's consider two docker conatiner named app and mysql.
I am looking for a way, where I can map app and mysql ports, so that if I try to connect to mysql from web, using localhost:3306 it can connect....
0
votes
2answers
997 views
Docker not exposing port on mojave mac
I used brew to install docker, docker-machine and docker-compose. Everything is working, but when I use expose to map port on my host machine, it is not working.
When I ssh in docker machine service ...
1
vote
0answers
304 views
running httpd and nginx in the same pod kubernetes [closed]
I am not able to run both apache (httpd) and nginx in the same pod. Indeed both containers are running on port 80.
# kubectl logs -f multi-container -c apache
(98)Address in use: AH00072: make_sock: ...
23
votes
2answers
11k views
Why use EXPOSE in Dockerfile — since you can bind to all ports anyways
I can docker run -p 3000:3000 image without EXPOSEing that port in the container (see below). If that's true, then why bother putting EXPOSE in the Dockerfile? Is it just for communication to image ...
0
votes
1answer
209 views
Why won't InSpec admit that port 5432 is listening inside a PostgreSQL container?
Background
I'm trying to test a PostgreSQL container with InSpec 2.1.10, but I cannot get a simple port check to return true, even though Docker, netstat, and psql all report that the port is ...
17
votes
4answers
27k views
Ansible: Other option available for telnet check of open ports?
I'm new to Ansible. Here's my task ...
I have 400+ hosts, and I need to verify if 5 different ports are open from their end to our web server.
Individually, I could log in and run:
telnet ...
5
votes
1answer
100 views
When would I choose IPTables over an Ambassador pattern for port forwarding?
In an environment of Secured Virtual Private Clouds, in a Cluster of Docker Containers, we have to setup some routes.
We can do that with the Ambassador pattern, which is simple and easy to maintain....
1
vote
1answer
2k views
Why is ansible not sending the correct sudo password?
What does it mean when this:
EXEC sshpass -d29 ssh -C -vvv
-o ControlMaster=auto
-o ControlPersist=60s
-o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no\
-...
12
votes
1answer
698 views
How to deterministic and reproducibly assign increasing port numbers in Ansible?
I am new to Ansible, but I have to maintain a set of playbooks, which correspond to services to be setup in a given environment. They need to be assigned a port, certificates, etc. This results in ...