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?
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:
FROM debian:buster-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y apt-utils
RUN apt-get update && apt-get install -y adb wget \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
Build it with
docker build -t adb .
Then I interact with adb with:
docker run -it -v /srv/adb:/misc --net=host adb
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.
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.
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.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!