How can I run a Docker Image inside a USB Flash Drive to use in a Linux Computer without Docker installed?

To avoid Installing in Each Linux Computer, I just need to use docker inside the USB Flash Drive, to use Images I create or Working with programs inside my OS images.

I've Looking for a while for this, but I only Find this Question without awnser:


  • This seems to attend your necessities github.com/jrruethe/debian-micro
    – vfbsilva
    May 25, 2018 at 18:50
  • "The only dependency is that Docker needs to be available on the build machine." Docker is not available on the machine
    – F4NT0
    May 25, 2018 at 19:51
  • Well you need to make the iso and have one working version of docker
    – vfbsilva
    May 25, 2018 at 20:30

1 Answer 1


This has been answered in superuser. It basically comes down to manually installing docker on your external drive by downloading the binaries and creating an start script that specifies the path of the images using the --data-root parameter of dockerd. You cannot / should not do this with a ntfs or fat32 file system, however. I managed to run a portable docker instance from an external harddrive with a xfs partition.

$(pwd)/dockerd --data-root $(pwd)/../data/
pid=$(cat /var/run/docker.pid)
kill -9 $pid

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.