How can I achieve the equivalent of
sudo docker run -it --rm --name my-python-container -v "$PWD":/usr/src/myapp -w /usr/src/myapp python:2-slim python test.py
using the Docker API for Golang?
Either https://github.com/fsouza/go-dockerclient or https://github.com/samalba/dockerclient is fine.