Creating building docker image. Create Dockerfile with below content. Run docker build -t <image-name> .
FROM steveny/predictionio
CMD ["python", "app.py"]
EXPOSE 8000
Running a docker with image. -i opens interactive shell.
docker run -it <image-name> /bin/bash
List running container process.
docker ps
Running command on running container.
docker exec -it <container-id> /bin/bash
Attach to existing interactive session.
docker attach <container-id>