docker change port of an exist image container

description: Docker Change Port Mapping for an Existing Container

Stop the running image

1
docker Stop image1

save the previous image

1
docker commit image1 image2

image2 is the name of new image

start the new image with a new mapped port

1
docker run -p 8080:8080 -td image2

more on search4fan.github.io