#### 前言
--privileged可以满足我们的定制化需求
#### 作用
- 使container内的root拥有真正的root权限,否则只是外部的一个普通用户权限
- 可以看到很多host上的设备,并且可以执行mount
- 允许你在docker容器中启动docker容器
#### 示例
> docker run -it --privileged=true centos bash
```
[root@c14a0aa72797 /]# ls /dev/
autofs loop-control snd tty22 tty41 tty60 vcs2
bsg mapper sr0 tty23 tty42 tty61 vcs3
btrfs-control mcelog stderr tty24 tty43 tty62 vcs4
bus mem stdin tty25 tty44 tty63 vcs5
console mqueue stdout tty26 tty45 tty7 vcs6
core net tty tty27 tty46 tty8 vcsa
cpu network_latency tty0 tty28 tty47 tty9 vcsa1
cpu_dma_latency network_throughput tty1 tty29 tty48 ttyS0 vcsa2
crash null tty10 tty3 tty49 ttyS1 vcsa3
dm-0 nvram tty11 tty30 tty5 ttyS2 vcsa4
dm-1 oldmem tty12 tty31 tty50 ttyS3 vcsa5
dri port tty13 tty32 tty51 uhid vcsa6
fb0 ppp tty14 tty33 tty52 uinput vda
fd ptmx tty15 tty34 tty53 urandom vda1
full pts tty16 tty35 tty54 usbmon0 vda2
fuse random tty17 tty36 tty55 usbmon1 vfio
hidraw0 raw tty18 tty37 tty56 usbmon2 vga_arbiter
hpet rtc0 tty19 tty38 tty57 usbmon3 vhci
hwrng sg0 tty2 tty39 tty58 usbmon4 vhost-net
input shm tty20 tty4 tty59 vcs vport1p1
kmsg snapshot tty21 tty40 tty6 vcs1 zero
[root@c14a0aa72797 /]# mkdir /home/test1
[root@c14a0aa72797 /]# mkdir /home/test2
[root@c14a0aa72797 /]# mount -o bind /home/test1 /home/test2
```