Home > Article > Operation and Maintenance > How docker obtains container root permissions
1. View the CONTAINER ID of the container
docker ps
ps: Need a running container
2. Obtain root permissions
For example, the CONTAINER ID that needs to be entered is 2209371edd48, and the command is as follows:
docker exec -ti -u root 2209371edd48 bash
Recommended tutorial: docker tutorial
The above is the detailed content of How docker obtains container root permissions. For more information, please follow other related articles on the PHP Chinese website!