docker compose exec web sh -c 'cat /etc/hosts'
Category: Docker
Run a shell command inside a compose service container