https://github.com/cybersecurity-dev/docker-toolkit
Reusable Docker Scripting Toolkit for Development Environment Setup
https://github.com/cybersecurity-dev/docker-toolkit
docker dockerfile dockerhub pcap-analyzer
Last synced: 11 days ago
JSON representation
Reusable Docker Scripting Toolkit for Development Environment Setup
- Host: GitHub
- URL: https://github.com/cybersecurity-dev/docker-toolkit
- Owner: cybersecurity-dev
- License: apache-2.0
- Created: 2024-07-22T11:10:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-03T13:13:26.000Z (over 1 year ago)
- Last Synced: 2025-02-03T14:24:17.541Z (over 1 year ago)
- Topics: docker, dockerfile, dockerhub, pcap-analyzer
- Language: Dockerfile
- Homepage: https://www.docker.com/
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[]()
[]()
[]()
[]()
[]()
[](https://www.docker.com/)
Reusable Docker Toolkit Scripting for Development Environment
## Docker Help
### Common Commands:
- `exec` : _Execute a command in a running container_
if your container is running a webserver, [`docker attach`](https://stackoverflow.com/questions/30172605/how-do-i-get-a-console-like-connection-into-a-docker-containers-shell) will probably connect you to the stdout of the web server process. It won't necessarily give you a shell.
```bash
docker exec -it sh
```
- `ps` : List containers
```bash
docker ps
```
```bash
docker ps -a
```
- `image` : _List images_
```bash
docker image ls
```
### Management Commands:
- `container` : _Manage containers_
List
```bash
docker container ls
```
```bash
docker container ls -a
```
### Commands:
- `attach` : _Attach local standard input, output, and error streams to a running container_
```bash
docker attach
```
## Most used command
### Get the output (logs) of the last run container
Identify the last run container (_both running and stopped_)
```concole
docker ps -a
docker ps -a --format "{{.ID}}\t{{.Names}}\t{{.Status}}" -n 1
docker ps -lq
```
View the container's logs
```concole
docker logs
```
```console
LAST_CONTAINER_ID=$(docker ps -lq) && docker logs $LAST_CONTAINER_ID
```
## :clipboard: Autokeras
### :fast_forward: Quick Start
Building the image:
```console
docker build . --file Dockerfile --tag cyberthreatdefense/autokeras
[...]
<<>>
[...]
```
or Pull the Image:
```console
docker pull cyberthreatdefense/autokeras
```
Starting it up with the current working directory mounted as `/mnt/share` in the container:
```bash
docker run -it -h --name autokeras -v `pwd`:/mnt/share cyberthreatdefense/autokeras
```
```powershell
docker run -it -h --name autokeras -v ${PWD}:/mnt/share cyberthreatdefense/autokeras
```
Start the container
```console
docker start -i autokeras
```

[🔼 Back to top](#docker-toolkit)
## :clipboard: Detect-It-Easy
### :fast_forward: Quick Start
[](https://hub.docker.com/r/cyberthreatdefense/diec)
Building the image:
```console
docker build . --file Dockerfile --tag cyberthreatdefense/diec
[...]
<<>>
[...]
```
or Pull the Image:
```console
docker pull cyberthreatdefense/diec
```
Starting it up with the current working directory mounted as `/mnt/share` in the container:
```bash
docker run -it -h --name diec -v `pwd`:/mnt/share cyberthreatdefense/diec
```
```powershell
docker run -it -h --name diec -v ${PWD}:/mnt/share cyberthreatdefense/diec
```
Start the container
```console
docker start -i diec
```

[🔼 Back to top](#docker-toolkit)
## :clipboard: Manalyze
### :fast_forward: Quick Start
#### Alpine
Building the image:
```console
docker build . --file Dockerfile.alpine --tag cyberthreatdefense/manalyze-alpine
[...]
<<>>
[...]
```
or Pull the Image:
```console
docker pull cyberthreatdefense/manalyze-alpine
```
Starting it up with the current working directory mounted as `/mnt/share` in the container:
```bash
docker run -it -h --name manalyze-alpine -v `pwd`:/mnt/share cyberthreatdefense/manalyze-alpine
```
```powershell
docker run -it -h --name manalyze-alpine -v ${PWD}:/mnt/share cyberthreatdefense/manalyze-alpine
```
Start the container
```console
docker start -i manalyze-alpine
```
#### Ubuntu
```console
docker build . --file Dockerfile.ubuntu --tag cyberthreatdefense/manalyze-ubuntu
[...]
<<>>
[...]
```
Starting it up with the current working directory mounted as `/mnt/share` in the container:
```bash
docker run -it -h --name manalyze-ubuntu -v `pwd`:/mnt/share cyberthreatdefense/manalyze-ubuntu
```
```powershell
docker run -it -h --name manalyze-ubuntu -v ${PWD}:/mnt/share cyberthreatdefense/manalyze-ubuntu
```
Start the container
```console
docker start -i manalyze-ubuntu
```

[🔼 Back to top](#docker-toolkit)
## :clipboard: PCAP Extractor
### :fast_forward: Quick Start
Building the image:
```console
docker build . --file Dockerfile --tag cyberthreatdefense/pcap-extractor
[...]
<<>>
[...]
```
or Pull the Image:
```console
docker pull cyberthreatdefense/pcap-extractor
```
Starting it up with the current working directory mounted as `/mnt/share` in the container:
```bash
docker run -it -h --name pcap-extractor -v `pwd`:/mnt/share cyberthreatdefense/pcap-extractor
```
```powershell
docker run -it -h --name pcap-extractor -v ${PWD}:/mnt/share cyberthreatdefense/pcap-extractor
```
Start the container
```console
docker start -i pcap-extractor
```

[🔼 Back to top](#docker-toolkit)
## :clipboard: ML Malware Detection Competition/MalConv-Keras Malware Analysis Environment
### :fast_forward: Quick Start
Building the image:
```console
# docker build . --file Dockerfile --tag cyberthreatdefense/malconv-keras-malware-benchmark
[...]
<<>>
[...]
```
Starting it up with the current working directory mounted as `/mnt/share` in the container:
```console
# docker run -it -h malconv-keras-malware-benchmark -v `pwd`:/mnt/share cyberthreatdefense/malconv-keras-malware-benchmark
```
```powershell
# docker run -it -h malconv-keras-malware-benchmark -v ${PWD}:/mnt/share cyberthreatdefense/malconv-keras-malware-benchmark
```

[🔼 Back to top](#docker-toolkit)
## :clipboard: ML Malware Detection Competition/EMBER Malware Analysis Environment
### :fast_forward: Quick Start
Building the image:
```console
# docker build . --file Dockerfile --tag cyberthreatdefense/ember-malware-benchmark
[...]
<<>>
[...]
```
Starting it up with the current working directory mounted as `/mnt/share` in the container:
```console
# docker run -it -h ember-malware-benchmark -v `pwd`:/mnt/share cyberthreatdefense/ember-malware-benchmark
```
```powershell
# docker run -it -h ember-malware-benchmark -v ${PWD}:/mnt/share cyberthreatdefense/ember-malware-benchmark
```

##
### My Awesome Lists
You can access the my awesome lists [here](https://cyberthreatdefence.com/my_awesome_lists)
### Contributing
[Contributions of any kind welcome, just follow the guidelines](contributing.md)!
### Contributors
[Thanks goes to these contributors](https://github.com/cybersecurity-dev/Docker-Toolkit/graphs/contributors)!
[🔼 Back to top](#docker-toolkit)