mikebai.com

  • Home
  • dev
  • DotNET
  • M365
  • 搞笑
  • 杂七杂八
  • FocusDict
個人BLOG
it developer
  1. Main page
  2. M365
  3. Main content

Docker Privileged

2021-03-20 173hotness 0likes 0comments

Introduction

 

Docker privileged is one of many useful features of this powerful virtualization platform. Before you start working in privileged mode, make sure you understand how it works.

In this tutorial, you will learn what privileged Docker containers are, when to use them, and whether it is a good option for you.

Running Docker privileged containers

What is Docker Privileged Mode?

 

Docker privileged mode grants a Docker container root capabilities to all devices on the host system. Running a container in privileged mode gives it the capabilities of its host machine. For example, it enables it to modify App Arm and SELinux configurations.

With the host’s kernel features and device access, you can even install a new instance of the Docker platform within the privileged container. Essentially, this mode allows running Docker inside Docker.

What is Docker privileged mode


 

Note: Learn more about Docker containers and how they differ from Docker images in Docker Image Vs Container: The Major Differences.


How to Check if a Container is Privileged?

 

To check whether you are running a container in privileged mode, use the command:

docker inspect --format='{{.HostConfig.Privileged}}' [container_id]

If the container is privileged, the output responds with true, as in the image below.

Tag: Nothing
Last updated:2021-03-20

mikebai

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

COPYRIGHT © 2025 mikebai.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang