Skip to content

Docker conatiner Run - port already allocated #2

@sailakshmi1

Description

@sailakshmi1

I tried building docker container image 2 times by giving 2 differennt tags as shown below

docker container build -t spc:290120
docker container build -t spc:1.290120

when i am trying to create/run the container on 8081:8080 port it is showing the following error.
docker container run -d -p 8081:8080 spc:290120

docker: Error response from daemon: driver failed programming external connectivity on
endpoint mystifying_ritchie (b1720739a307beff63822e7352e0f1def36f4fa38a521162c81df9549a0348d9):
Bind for 0.0.0.0:8081 failed: port is already allocated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions