2025-05-14 09:31:06 +02:00
|
|
|
# Dockerfile for creating a plugable debian for various troubleshooting-tasks
|
2025-05-14 09:24:01 +02:00
|
|
|
|
|
|
|
|
2025-05-14 09:29:17 +02:00
|
|
|
### Usage:
|
2025-05-14 09:24:01 +02:00
|
|
|
|
2025-05-14 09:29:17 +02:00
|
|
|
Clone git-repo:
|
2025-05-14 09:24:01 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
git clone git@forge.dmz.skyfritt.net:Symbiose/debian-armyknife.git
|
2025-05-14 09:29:17 +02:00
|
|
|
```
|
|
|
|
Build image (from inside repo-folder, typically /opt/debian-armyknife)
|
2025-05-14 09:24:01 +02:00
|
|
|
|
2025-05-14 09:29:17 +02:00
|
|
|
```
|
|
|
|
docker build -t debian-armyknife:custom .
|
2025-05-14 09:24:01 +02:00
|
|
|
```
|
|
|
|
|
2025-05-14 09:29:17 +02:00
|
|
|
Verify that the new image is avaiable:
|
2025-05-14 09:24:01 +02:00
|
|
|
|
2025-05-14 09:29:17 +02:00
|
|
|
```
|
|
|
|
# docker images
|
|
|
|
REPOSITORY TAG IMAGE ID CREATED SIZE
|
|
|
|
debian-armyknife custom ba509e499dda 11 hours ago 321MB
|
|
|
|
```
|
2025-05-14 09:24:01 +02:00
|
|
|
|
2025-05-14 09:29:17 +02:00
|
|
|
Run image:
|
|
|
|
|
|
|
|
```
|
|
|
|
docker run -it debian-armyknife:custom bash
|
2025-05-14 09:24:01 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-05-14 09:31:06 +02:00
|
|
|
Add information on how to include via docker compose:
|
|
|
|
|
|
|
|
```
|
|
|
|
missing
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Add information on how to attach to specific network:
|
|
|
|
|
|
|
|
```
|
|
|
|
missing
|
|
|
|
```
|
|
|
|
|
|
|
|
|