Run command for create image, create container and run it:
docker compose up -d --build
- Create only the image (without running the container):
docker compose build
- Create container after image is created:
docker compose create
We enter to container
docker exec -it docker-secure-sandbox-1 bash
Run script
bash /usr/local/bin/bootstrap.sh
Place the repository to clone
https://github.com/anmedina-arg/docker-secure-demo
Already in the project
cd /workspace/nombre-del-repo
npm install
npm run dev
In the meantime you can:
-
View active connections with:
netstat -tulnporlsof -i -
View open files with:
lsof -
View suspicious processes with:
ps aux -
Use
straceto follow specific processes if you want to go more proactive.