Running a Container Based Docker Image Locally. Download and install the Docker Engine.. Select an image from Docker Hub. ... . Switch to the travis user: su - travis.. Clone your git repository into the / folder of the image.. Manually install any dependencies.. Manually run your Travis CI build command.