Docker container of debian

  • I have been looking with no success.


    I wanted to see if I could setup a docker container that is basically just debian 10 and then I can play with random things inside the container.


    Is this possible?

  • Sure. here is a Dockerfile that I use:



    Build it with

    docker build -t adb .


    Then I interact with adb with:

    docker run -it -v /srv/adb:/misc --net=host adb

    omv 5.6.6 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • How can I do this in portainer?

    What are you trying to do with the image? An empty Debian container won't do anything. I use adb in mine.

    omv 5.6.6 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • What are you trying to do with the image? An empty Debian container won't do anything. I use adb in mine.

    I guess if I need a service I can install adb. Basically I wanted to test random things under a debian system without needing to standup a full one ie bash scripting or firewall testing etc.

  • The problem with your idea is that the container is very, very minimal. There is no firewall and some/most of the things you might call from your script won't be installed. I think a VM would be a better fit for your firewall testing. Maybe you could install all of the packages needed to test your scripting but the VM would be easier especially if you were expecting systemd to be there.

    omv 5.6.6 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • The problem with your idea is that the container is very, very minimal. There is no firewall and some/most of the things you might call from your script won't be installed. I think a VM would be a better fit for your firewall testing. Maybe you could install all of the packages needed to test your scripting but the VM would be easier especially if you were expecting systemd to be there.

    Thanks. As I said I am a noob to docker so I am still learning what is possible.


    What led me down this path of ideas was my pihole docker container. When I installed it as pihole:latest it automatically pulled an image running on stretch. Within the container console (via portainer > console) I was able to "upgrade" the container to buster. Only after that did I find the pihole:dev-buster image and just used that as a container.


    But I think I will toss this idea off for now. Thanks again.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!