Home  >  Article  >  Operation and Maintenance  >  How docker obtains container root permissions

How docker obtains container root permissions

王林
王林Original
2020-03-24 15:25:284153browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How docker starts imageNext article:How docker starts image