''' first install the docker ''' pip install docker ''' now you can import and use ''' import docker client = docker.from_env()