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:42:34 +02:00
|
|
|
###### 1. Clone git-repo:
|
2025-05-14 09:24:01 +02:00
|
|
|
|
|
|
|
```
|
2025-05-14 09:36:44 +02:00
|
|
|
git clone https://forge.dmz.skyfritt.net/Symbiose/debian-armyknife
|
2025-05-14 09:29:17 +02:00
|
|
|
```
|
2025-05-14 09:36:44 +02:00
|
|
|
|
2025-05-14 09:42:34 +02:00
|
|
|
###### 2. 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:42:34 +02:00
|
|
|
###### 3. 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:42:34 +02:00
|
|
|
###### 4. Run image:
|
2025-05-14 09:29:17 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
docker run -it debian-armyknife:custom bash
|
2025-05-14 09:24:01 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-05-14 09:42:34 +02:00
|
|
|
###### Add information on how to include via docker compose:
|
2025-05-14 09:31:06 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
missing
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2025-05-14 09:42:34 +02:00
|
|
|
###### Add information on how to attach to specific network:
|
2025-05-14 09:31:06 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
missing
|
|
|
|
```
|
|
|
|
|
|
|
|
|