refactor: replace deprecated docker-compose with docker compose across repository
This commit is contained in:
@@ -77,7 +77,7 @@ Containers or the entire Docker daemon are killed by the kernel's OOM (Out Of Me
|
||||
- Memory leaks in student code go unchecked
|
||||
|
||||
**How to avoid:**
|
||||
- Always set `mem_limit` in docker-compose for each service
|
||||
- Always set `mem_limit` in docker compose for each service
|
||||
- Use `deploy.resources.limits.memory` in compose file format v3+
|
||||
- Monitor with `docker stats`
|
||||
- Teach students to check container resource usage
|
||||
@@ -107,7 +107,7 @@ Containers run as root by default, creating security vulnerabilities and permiss
|
||||
- Volume permission errors seem "easier" to fix with root
|
||||
|
||||
**How to avoid:**
|
||||
- Always specify `user:` directive in docker-compose or Dockerfile
|
||||
- Always specify `user:` directive in docker compose or Dockerfile
|
||||
- Create non-root users in Dockerfiles
|
||||
- Teach Linux permission basics alongside Docker
|
||||
- Use Docker's user namespaces for advanced labs
|
||||
|
||||
Reference in New Issue
Block a user