Exécutez l'image docker ubunt avec le port
To publish a port for our container, we’ll use the --publish flag (-p for short) on the docker run command. The format of the --publish command is [host_port]:[container_port]. So if we wanted to expose port 8080 inside the container to port 3000 outside the container, we would pass 3000:8080 to the --publish flag.
Start the container and expose port 8080 to port 8080 on the host.
$ docker run --publish 8080:8080 docker-gs-ping
----- see result
$ curl http://localhost:8080/
result: Hello World!
Arad Aryan