Questions tagged [ports]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
849 views

What is this "rootlessport", and how to get it to release the port hold?

We're trying to improve on the Mailman3 Docker project, converting it to podman(4.4.1) pod. I've seen several "address in use" errors. I believe the way to debug them is to find what's ...
Polo's user avatar
  • 21
0 votes
0 answers
143 views

docker port forwarding combined with ssh port forwarding

I have a local machine LOCAL, a remote machine REMOTE, and a docker on the remote machine REMOTEDOCKER. I have a proxy listening on LOCAL:12345. With ALL_PROXY=socks5h://LOCAL:12345, curl on LOCAL can ...
Sylvain Hubert's user avatar
0 votes
0 answers
17 views

Why does k8s by design uses 3 ports for NodePort's services instead of just 2

I am seeing that to create a nodePort service using a yaml manifest there are three port parameters to enter: port, targetport and NodePort. To give an example, I have this hypothethical manifest: Now ...
Eugenio.Gastelum96's user avatar
0 votes
0 answers
658 views

Why k8s with minikube NodePort are not working?

I am using minikube on my windows 11 machine just to start testing k8s. And my NodePorts are not giving an URL, and even when I recover the service's I.P and ports by using kubectl describe and I use ...
Eugenio.Gastelum96's user avatar
1 vote
1 answer
507 views

Why does running a nginx image in docker interactive mode makes nginx not working

I have made a docker container from nginx running in background this way: docker run -d --name nginx1 -p 49699:80 nginx When I go to localhost:49699 on a browser with cleared cache it works properly ...
Eugenio.Gastelum96's user avatar
2 votes
2 answers
525 views

Why do I get different responses either when I use `sudo` before `kubectl` or not?

For example when I use kubectl get pods the response is: No resources found in default namespace. But when I use sudo kubectl get pods the result is: E1211 12:01:15.409201 50965 memcache.go:238] ...
best_of_man's user avatar
0 votes
2 answers
2k views

What is the best way to reverse port forward information from a Kubernetes cluster to localhost?

I am attempting to reverse port forward information from a Kubernetes pod 192.168.49.2:30085 to my locoalhost:8000 but I am having issues. The goal is to get the same response as curl 192.168.49.2:...
garrett_17's user avatar
0 votes
1 answer
157 views

Why does the Rancher Security Group use TCP Port 10256?

What does TCP 10256 do and where is to documented. According to the "Rancher AWS EC2 Security Grouplink" it's open. But I don't see any documentation on port 10256 elsewhere. It's also ...
Evan Carroll's user avatar
  • 1,794
2 votes
1 answer
367 views

How to modify/allow firewall rules of a GCP instance directly from the CLI?

Is there anyway to allow the ports from CLI? I have an instance in GCP and I have installed a service which by default runs on Port:8080. I know there is an option to change the firewall rules to ...
AV Reddy's user avatar
0 votes
2 answers
510 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 ...
Chris's user avatar
  • 1
0 votes
1 answer
5k 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 ...
Nicholas Saunders's user avatar
0 votes
2 answers
2k 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 ...
Nicholas Saunders's user avatar
0 votes
1 answer
65 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 ...
doug's user avatar
  • 513
1 vote
1 answer
318 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 ...
Madan's user avatar
  • 101
1 vote
1 answer
747 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 ...
Neil's user avatar
  • 157
1 vote
1 answer
114 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 ...
Wunderbread's user avatar
1 vote
1 answer
337 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....
kadamb's user avatar
  • 111
0 votes
2 answers
2k 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 ...
Kamal Panhwar's user avatar
1 vote
0 answers
658 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: ...
Abdennour TOUMI's user avatar
28 votes
2 answers
13k 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 ...
Alexander Bird's user avatar
0 votes
1 answer
277 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 ...
CodeGnome's user avatar
  • 242
23 votes
4 answers
43k 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 ...
AWhitaker's user avatar
  • 341
5 votes
1 answer
114 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....
hawkeye's user avatar
  • 1,133
1 vote
1 answer
3k 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\ -...
Peter Turner's user avatar
  • 1,376
12 votes
1 answer
1k 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 ...
midor's user avatar
  • 221