I am planning to use a Raspberry Pi 4.0 B as the new home for my current distro of Ubuntu which is located in WSL2 in Win10. Now as I understand I can export the files, but is there any way to get it running in a docker of the new Raspberry Pi? Because Raspberry Pi works on the ARM platform, I am not sure whether the only instruction I found might work.

Does somebody has a advice or idea how to manage this? Or better to install and configure everything from zero?

  • 1
    Since you cant use the docker images from the WSL2 (different CPU) isn't following the instruction feasible. And then it depends if you have structured your docker in a correct way (templates and data folders) and have you used docker-compose? So there is some missing info to give a proper answer.
    – MatsK
    Aug 7, 2021 at 18:27
  • @MatsK I don't believe the OP means transferring Docker images, but rather, he wants to run an exact duplicate of his WSL environment on the RPi. He wants to migrate the system, along with all of its configuration, and believes that Docker images are the way to accomplish this.
    – user96931
    Aug 7, 2021 at 23:01
  • @rokdd Your best bet is to install and configure everything on your RPi from scratch, and transfer the files over. It will take much less time than attempting to migrate your WSL with all of its specific configuration and settings, which could be a dead end.
    – user96931
    Aug 7, 2021 at 23:03
  • @user96931 I believe the same, but I rather ask and don't assume, that's how Stackexchange works.
    – MatsK
    Aug 8, 2021 at 5:38
  • 1
    Well thanks both of you! I also noticed two days ago that it is the best way instead of trying bringing the whole ubuntu as image into docker container. Nevertheless I would have to reinstall Ubuntu as a new image and copying all settings and modifications because of wrong platform architecture. So I guess the only way is to compose the docker images :-)
    – rokdd
    Aug 8, 2021 at 8:45

1 Answer 1


Like discussed in the comments a summary how I solved the problem (or even not)

It makes not so much sense to import the Ubuntu of WSL as a image/container because:

  • architecture of both platforms are different (arm of Raspberry PI)
  • the Ubuntu might be slightly customized and even not running "normal"
  • it is not the concept of docker to put all applications in one docker

So I broke them down in multiple images:

  • nextcloud
  • postgres
  • redis
  • adminer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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