NOTE: You don't need sudo when using boot2docker on Mac/Win
sudo docker pull glickbot/pyx
Run the Docker image
sudo docker -d -p 8080:8080 glickbot/pyx
(On Linux) Visit
(On OSX) Run
open "http://$(boot2docker ip):8080/"
(On Win) Get the IP from
boot2docker ip, and visit:
http://<your boot2docker ip>:8080/
To stop the service:
sudo docker ps -l sudo docker stop <at least 4 characters of the id> sudo docker rm <at least 4 characters of the id>
Alternatively, if you start the container with:
sudo docker run -p 8080:8080 --rm glickbot/pyx
It'll clean up after itself, but you can't run this with the
-d flag, which puts it in the background.
Also, you could run:
sudo docker run -p 8080:8080 --rm -it glickbot/pyx
Which will keep the terminal attached, and also allow you to ctrl+c to stop jetty and break out of the container.
- To serve pyx to external clients while using boot2docker, you'll need to setup a reverse proxy (nginx/haproxy, etc), or add a bridged network adapter to your boot2docker VM.
- [maven] (https://registry.hub.docker.com/_/maven/)