A
A
Auschwiz2019-03-27 18:58:07
Docker
Auschwiz, 2019-03-27 18:58:07

How to remove a forwarded port in Docker?

Hello,
I have this container:

[email protected]:~# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                  NAMES
b3682f324136        ubuntu              "/bin/bash"         5 days ago          Up 5 days           0.0.0.0:8080->80/tcp   TestO

Is it possible to reassign the port in it so that it is, for example, like this: 0.0.0.0:8050-> 80 / tcp? Or even cancel the forwarding.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-03-27
@q2digger

Can. In the launch line, the "-r" switch is responsible for port mapping

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question