To add port forwardings, I always follow these steps,
stop running container
docker stop test01commit the container
docker commit test01 test02NOTE: The above,
test02is a new image that I'm constructing from thetest01container.re-run from the commited image
docker run -p 8080:8080 -td test02
Where the first 8080 is the local port and the second 8080 is the container port.
No hay comentarios:
Publicar un comentario