Infraestructura i Tecnologia de Xarxes
This project includes a Makefile with several useful Docker and Docker Compose management commands.
make help- Display all available Makefile targets with descriptionsmake list-compose- List all running Docker Compose projects on your systemmake stop-all-compose- Stop all Docker Compose projects (requiresjqto be installed)make install-docker- Install Docker and Docker Compose on your system
- For Docker Compose commands: Docker and Docker Compose must be installed
- For
stop-all-compose: Thejqcommand-line JSON processor must be installed
# See all available commands
make help
# List all Docker Compose projects
make list-compose
# Stop all running Docker Compose projects
make stop-all-compose
# Install Docker and Docker Compose (first-time setup)
make install-docker- The Makefile automatically detects whether you're using
docker-composeordocker compose - After running
make install-docker, you must start a new session or runsu - $USERto use Docker without sudo - The
install-dockercommand will skip installation if Docker is already present on your system