Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- docker run --user $(id -u):$(id -g) [...]
- For docker-compose:
- In docker-compose.yml:
- version: '3.3'
- services:
- foo:
- image: foo-app:latest
- command: ["foo"]
- user: ${CURRENT_UID}
- Run it:
- CURRENT_UID=$(id -u):$(id -g) docker-compose up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement