By editor, 17 January, 2024 How to run commands as root / sudo user in a docker container ? Example : connect as root user (where php is the container name) docker-compose exec --user=root php bash Tags docker Linux Docker cleanup - free disk space (prune) Install Docker on Linux Mint Comments You must have JavaScript enabled to use this form. Your name Subject Comment About text formats Plain text No HTML tags allowed. Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically.
Comments