Fix for Docker 'Port in Use' Error - How to Create a New Docker with Custom Port

Опубликовано: 02 Октябрь 2022
на канале: Late Developer
535
3

The Docker container error 'port in use' is incredibly frustrating and

Creating a new docker container with a custom port is simple thanks to a few commands from the command line, courtesy of, of course, the legendary Stack Overflow.

Here's a video to make it even easier for you to fix this frustrating Docker container / image creation problem.

Stack Overflow post: How do I assign a port mapping to an existing Docker container?
https://stackoverflow.com/questions/1...

CMD line commands:

docker stop docker-tutorial
docker commit docker-tutorial myport
docker run -p 8686:8686 -td myport

My Docker directory:

C:\Program Files\Docker\Docker

Hope that helps.
Steve

Remember - it's never too late!

Cheers,
Steve