A lightweight container.
Docker is an open-source platform used by developers and system administrators to build, ship, and run applications in isolated, lightweight virtual environments called containers
Clone a repo
https://github.com/mczen/repo.git
Dockerfile
If present use the docker. A Dockerfile is a set of instructions that Docker uses to create a new image.
docker build -t reponame:latest .
Run the container
# Run
docker run -d --name moshcast -v /home/kali/reponame:/app -w /app -p 8000:9080 reponame:latest
# Start
docker start reponame
Commands
# Open shell
docker exec -it moshcast sh
# Copy files
docker cp reponame:/tmp/file /tmp/file
# Restart container
docker restart reponame
# List running containre
docker ps
# Check logs
docker logs reponame