Skip to content

Instantly share code, notes, and snippets.

@mandrius
Created May 15, 2018 07:48
Show Gist options
  • Save mandrius/e54b58c23dc93077bda258b239f12649 to your computer and use it in GitHub Desktop.
Save mandrius/e54b58c23dc93077bda258b239f12649 to your computer and use it in GitHub Desktop.
# Exec as root
docker-compose exec --user root -T php sh -c "chown -R www-data:www-data ."
# Exec as regular
docker-compose exec -T php sh -c "composer --version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment