$ docker build -t yade -f Dockerfile
$ docker run --network host -d --rm -p 8000:8000 yade
$ curl localhost:8000
Explanation:
--network host
allows Docker to use network-based functions, in host mode.-d
runs Docker as daemon (running at the background)--rm
removes the container if exited-p 8000:8000
port-forwarding forcontainer:8000
tohost:8000
This should output something like this:
juanjo@debian:~/Docker$ curl localhost:8000
Hello world!