docker / docker/cli

Feature Request: docker rm --port

Open
#1,518 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/networking area/ux kind/feature
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Description

root@dfs0:~# docker rm --help

Usage:	docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers

Options:
  -f, --force     Force the removal of a running container (uses SIGKILL)
  -l, --link      Remove the specified link
  -v, --volumes   Remove the volumes associated with the container

I don't know how to remove a container's published port.
If there is no way, I think we can add a remove port function?
I don't want to remove the container and recreate a new one.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names only the docker rm command and its help output; no files or tests are provided. Start by verifying whether a published port can be removed from an existing container without recreation. Done requires an agreed command behavior and corresponding implementation and tests, which are not specified here.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.