Does anyone know if I can pull and install a docker container from dockerhub using python? I was looking at the docker-py documentation, but I can't find anything about pulling images. The only references I saw were about using already installed images.
Note that most of the links I found while googling talk about installing pip inside of a docker container, but that is NOT what I want to do. That was just a caveat.
Now I was not sure if users needed sudo privileges to pull or start containers in docker. I want to create a command line tool that will pull down a docker container from dockerhub and start that image. Is there a way to do this in python, or does that need to be done through some sort of bash script?
Thanks.