When using lxc exec driver the /dev/ tmpfs is not mounted correctly and whatever was in /dev/ in the image is present in the container, rather than the default devices. --privileged also doesn't work properly.
$ docker run -i -t --privileged ubuntu /bin/bash
root@27566f43fdec:/# ls /dev/
agpgart hdg7 ptytc sg12 ttys2
ataraid hdg8 ptytd sg13 ttys3
atibm hdg9 ptyte sg14 ttys4
audio hdh ptytf sg15 ttys5
audio1 hdh1 ptyu0 sg16 ttys6
audio2 hdh10 ptyu1 sg2 ttys7
audio3 hdh11 ptyu2 sg3 ttys8
audioctl hdh12 ptyu3 sg4 ttys9
aztcd0 hdh13 ptyu4 sg5 ttysa
bpcd hdh14 ptyu5 sg6 ttysb
cciss hdh15 ptyu6 sg7 ttysc
cdu535 hdh16 ptyu7 sg8 ttysd
cm206cd0 hdh17 ptyu8 sg9 ttyse
console hdh18 ptyu9 shm ttysf
core hdh19 ptyua sjcd ttyt0
dpti1 hdh2 ptyub smpte0 ttyt1
dpti2 hdh20 ptyuc smpte1 ttyt2
dpti3 hdh3 ptyud smpte2 ttyt3
dpti4 hdh4 ptyue smpte3 ttyt4
dpti5 hdh5 ptyuf sndstat ttyt5
dpti6 hdh6 ptyv0 sonycd ttyt6
dpti7 hdh7 ptyv1 sr0 ttyt7
dsp hdh8 ptyv2 sr1 ttyt8
dsp1 hdh9 ptyv3 sr10 ttyt9
dsp2 i2o ptyv4 sr11 ttyta
dsp3 ida ptyv5 sr12 ttytb
eda initrd ptyv6 sr13 ttytc
eda1 inportbm ptyv7 sr14 ttytd
eda2 input ptyv8 sr15 ttyte
eda3 ippp0 ptyv9 sr16 ttytf
eda4 ippp1 ptyva sr2 ttyu0
eda5 ippp2 ptyvb sr3 ttyu1
eda6 ippp3 ptyvc sr4 ttyu2
eda7 ippp4 ptyvd sr5 ttyu3
eda8 ippp5 ptyve sr6 ttyu4
edb ippp6 ptyvf sr7 ttyu5
edb1 ippp7 ptyw0 sr8 ttyu6
edb2 isdn0 ptyw1 sr9 ttyu7
edb3 isdn1 ptyw2 st0 ttyu8
edb4 isdn2 ptyw3 st0a ttyu9
edb5 isdn3 ptyw4 st0l ttyua
edb6 isdn4 ptyw5 st0m ttyub
edb7 isdn5 ptyw6 st1 ttyuc
edb8 isdn6 ptyw7 st1a ttyud
fb0 isdn7 ptyw8 st1l ttyue
fb0autodetect isdnctrl0 ptyw9 st1m ttyuf
fb0current isdnctrl1 ptywa stderr ttyv0
fb1 isdnctrl2 ptywb stdin ttyv1
fb1autodetect isdnctrl3 ptywc stdout ttyv2
fb1current isdnctrl4 ptywd tty ttyv3
fb2 isdnctrl5 ptywe tty0 ttyv4
fb2autodetect isdnctrl6 ptywf tty1 ttyv5
fb2current isdnctrl7 ptyx0 tty10 ttyv6
fb3 isdninfo ptyx1 tty11 ttyv7
fb3autodetect jbm ptyx2 tty12 ttyv8
fb3current kmem ptyx3 tty13 ttyv9
fb4 lmscd ptyx4 tty14 ttyva
fb4autodetect logibm ptyx5 tty15 ttyvb
fb4current loop0 ptyx6 tty16 ttyvc
fb5 loop1 ptyx7 tty17 ttyvd
fb5autodetect loop2 ptyx8 tty18 ttyve
fb5current loop3 ptyx9 tty19 ttyvf
fb6 loop4 ptyxa tty2 ttyw0
fb6autodetect loop5 ptyxb tty20 ttyw1
fb6current loop6 ptyxc tty21 ttyw2
fb7 loop7 ptyxd tty22 ttyw3
fb7autodetect lp0 ptyxe tty23 ttyw4
fb7current lp1 ptyxf tty24 ttyw5
fd lp2 ptyy0 tty25 ttyw6
fd0 mcd ptyy1 tty26 ttyw7
fd0CompaQ mcdx ptyy2 tty27 ttyw8
fd0d360 mcdx0 ptyy3 tty28 ttyw9
fd0h1200 mcdx1 ptyy4 tty29 ttywa
fd0h1440 mcdx2 ptyy5 tty3 ttywb
fd0h1476 mcdx3 ptyy6 tty30 ttywc
fd0h1494 mcdx4 ptyy7 tty31 ttywd
fd0h1600 md0 ptyy8 tty32 ttywe
fd0h360 md1 ptyy9 tty33 ttywf
fd0h410 md10 ptyya tty34 ttyx0
fd0h420 md11 ptyyb tty35 ttyx1
fd0h720 md12 ptyyc tty36 ttyx2
fd0h880 md13 ptyyd tty37 ttyx3
fd0u1040 md14 ptyye tty38 ttyx4
fd0u1120 md15 ptyyf tty39 ttyx5
fd0u1440 md2 ptyz0 tty4 ttyx6
fd0u1600 md3 ptyz1 tty40 ttyx7
fd0u1680 md4 ptyz2 tty41 ttyx8
fd0u1722 md5 ptyz3 tty42 ttyx9
fd0u1743 md6 ptyz4 tty43 ttyxa
fd0u1760 md7 ptyz5 tty44 ttyxb
fd0u1840 md8 ptyz6 tty45 ttyxc
fd0u1920 md9 ptyz7 tty46 ttyxd
fd0u2880 mem ptyz8 tty47 ttyxe
fd0u3200 midi0 ptyz9 tty48 ttyxf
fd0u3520 midi00 ptyza tty49 ttyy0
fd0u360 midi01 ptyzb tty5 ttyy1
fd0u3840 midi02 ptyzc tty50 ttyy2
fd0u720 midi03 ptyzd tty51 ttyy3
fd0u800 midi1 ptyze tty52 ttyy4
fd0u820 midi2 ptyzf tty53 ttyy5
fd0u830 midi3 ram tty54 ttyy6
fd1 mixer ram0 tty55 ttyy7
fd1CompaQ mixer1 ram1 tty56 ttyy8
fd1d360 mixer2 ram10 tty57 ttyy9
fd1h1200 mixer3 ram11 tty58 ttyya
fd1h1440 mpu401data ram12 tty59 ttyyb
fd1h1476 mpu401stat ram13 tty6 ttyyc
fd1h1494 nst0 ram14 tty60 ttyyd
fd1h1600 nst0a ram15 tty61 ttyye
fd1h360 nst0l ram16 tty62 ttyyf
fd1h410 nst0m ram2 tty63 ttyz0
fd1h420 nst1 ram3 tty7 ttyz1
fd1h720 nst1a ram4 tty8 ttyz2
fd1h880 nst1l ram5 tty9 ttyz3
fd1u1040 nst1m ram6 ttyACM0 ttyz4
fd1u1120 null ram7 ttyACM1 ttyz5
fd1u1440 optcd ram8 ttyACM10 ttyz6
fd1u1600 par0 ram9 ttyACM11 ttyz7
fd1u1680 par1 random ttyACM12 ttyz8
fd1u1722 par2 rd ttyACM13 ttyz9
fd1u1743 port rmidi0 ttyACM14 ttyza
fd1u1760 psaux rmidi1 ttyACM15 ttyzb
fd1u1840 ptmx rmidi2 ttyACM2 ttyzc
fd1u1920 pts rmidi3 ttyACM3 ttyzd
fd1u2880 ptya0 rtc ttyACM4 ttyze
fd1u3200 ptya1 sbpcd ttyACM5 ttyzf
fd1u3520 ptya2 sbpcd0 ttyACM6 urandom
fd1u360 ptya3 sbpcd1 ttyACM7 usb
fd1u3840 ptya4 sbpcd2 ttyACM8 vcs
fd1u720 ptya5 sbpcd3 ttyACM9 vcs0
fd1u800 ptya6 scd0 ttyS0 vcs1
fd1u820 ptya7 scd1 ttyS1 vcs10
fd1u830 ptya8 scd10 ttyS2 vcs11
full ptya9 scd11 ttyS3 vcs12
fuse ptyaa scd12 ttyUSB0 vcs13
gscd0 ptyab scd13 ttyUSB1 vcs14
hda ptyac scd14 ttyUSB10 vcs15
hda1 ptyad scd15 ttyUSB11 vcs16
hda10 ptyae scd16 ttyUSB12 vcs17
hda11 ptyaf scd2 ttyUSB13 vcs18
hda12 ptyb0 scd3 ttyUSB14 vcs19
hda13 ptyb1 scd4 ttyUSB15 vcs2
hda14 ptyb2 scd5 ttyUSB2 vcs20
hda15 ptyb3 scd6 ttyUSB3 vcs21
hda16 ptyb4 scd7 ttyUSB4 vcs22
hda17 ptyb5 scd8 ttyUSB5 vcs23
hda18 ptyb6 scd9 ttyUSB6 vcs24
hda19 ptyb7 sda ttyUSB7 vcs25
hda2 ptyb8 sda1 ttyUSB8 vcs26
hda20 ptyb9 sda10 ttyUSB9 vcs27
hda3 ptyba sda11 ttya0 vcs28
hda4 ptybb sda12 ttya1 vcs29
hda5 ptybc sda13 ttya2 vcs3
hda6 ptybd sda14 ttya3 vcs30
hda7 ptybe sda15 ttya4 vcs31
hda8 ptybf sda2 ttya5 vcs32
hda9 ptyc0 sda3 ttya6 vcs33
hdb ptyc1 sda4 ttya7 vcs34
hdb1 ptyc2 sda5 ttya8 vcs35
hdb10 ptyc3 sda6 ttya9 vcs36
hdb11 ptyc4 sda7 ttyaa vcs37
hdb12 ptyc5 sda8 ttyab vcs38
hdb13 ptyc6 sda9 ttyac vcs39
hdb14 ptyc7 sdb ttyad vcs4
hdb15 ptyc8 sdb1 ttyae vcs40
hdb16 ptyc9 sdb10 ttyaf vcs41
hdb17 ptyca sdb11 ttyb0 vcs42
hdb18 ptycb sdb12 ttyb1 vcs43
hdb19 ptycc sdb13 ttyb2 vcs44
hdb2 ptycd sdb14 ttyb3 vcs45
hdb20 ptyce sdb15 ttyb4 vcs46
hdb3 ptycf sdb2 ttyb5 vcs47
hdb4 ptyd0 sdb3 ttyb6 vcs48
hdb5 ptyd1 sdb4 ttyb7 vcs49
hdb6 ptyd2 sdb5 ttyb8 vcs5
hdb7 ptyd3 sdb6 ttyb9 vcs50
hdb8 ptyd4 sdb7 ttyba vcs51
hdb9 ptyd5 sdb8 ttybb vcs52
hdc ptyd6 sdb9 ttybc vcs53
hdc1 ptyd7 sdc ttybd vcs54
hdc10 ptyd8 sdc1 ttybe vcs55
hdc11 ptyd9 sdc10 ttybf vcs56
hdc12 ptyda sdc11 ttyc0 vcs57
hdc13 ptydb sdc12 ttyc1 vcs58
hdc14 ptydc sdc13 ttyc2 vcs59
hdc15 ptydd sdc14 ttyc3 vcs6
hdc16 ptyde sdc15 ttyc4 vcs60
hdc17 ptydf sdc2 ttyc5 vcs61
hdc18 ptye0 sdc3 ttyc6 vcs62
hdc19 ptye1 sdc4 ttyc7 vcs63
hdc2 ptye2 sdc5 ttyc8 vcs7
hdc20 ptye3 sdc6 ttyc9 vcs8
hdc3 ptye4 sdc7 ttyca vcs9
hdc4 ptye5 sdc8 ttycb vcsa
hdc5 ptye6 sdc9 ttycc vcsa0
hdc6 ptye7 sdd ttycd vcsa1
hdc7 ptye8 sdd1 ttyce vcsa10
hdc8 ptye9 sdd10 ttycf vcsa11
hdc9 ptyea sdd11 ttyd0 vcsa12
hdd ptyeb sdd12 ttyd1 vcsa13
hdd1 ptyec sdd13 ttyd2 vcsa14
hdd10 ptyed sdd14 ttyd3 vcsa15
hdd11 ptyee sdd15 ttyd4 vcsa16
hdd12 ptyef sdd2 ttyd5 vcsa17
hdd13 ptyp0 sdd3 ttyd6 vcsa18
hdd14 ptyp1 sdd4 ttyd7 vcsa19
hdd15 ptyp2 sdd5 ttyd8 vcsa2
hdd16 ptyp3 sdd6 ttyd9 vcsa20
hdd17 ptyp4 sdd7 ttyda vcsa21
hdd18 ptyp5 sdd8 ttydb vcsa22
hdd19 ptyp6 sdd9 ttydc vcsa23
hdd2 ptyp7 sde ttydd vcsa24
hdd20 ptyp8 sde1 ttyde vcsa25
hdd3 ptyp9 sde10 ttydf vcsa26
hdd4 ptypa sde11 ttye0 vcsa27
hdd5 ptypb sde12 ttye1 vcsa28
hdd6 ptypc sde13 ttye2 vcsa29
hdd7 ptypd sde14 ttye3 vcsa3
hdd8 ptype sde15 ttye4 vcsa30
hdd9 ptypf sde2 ttye5 vcsa31
hde ptyq0 sde3 ttye6 vcsa32
hde1 ptyq1 sde4 ttye7 vcsa33
hde10 ptyq2 sde5 ttye8 vcsa34
hde11 ptyq3 sde6 ttye9 vcsa35
hde12 ptyq4 sde7 ttyea vcsa36
hde13 ptyq5 sde8 ttyeb vcsa37
hde14 ptyq6 sde9 ttyec vcsa38
hde15 ptyq7 sdf ttyed vcsa39
hde16 ptyq8 sdf1 ttyee vcsa4
hde17 ptyq9 sdf10 ttyef vcsa40
hde18 ptyqa sdf11 ttyp0 vcsa41
hde19 ptyqb sdf12 ttyp1 vcsa42
hde2 ptyqc sdf13 ttyp2 vcsa43
hde20 ptyqd sdf14 ttyp3 vcsa44
hde3 ptyqe sdf15 ttyp4 vcsa45
hde4 ptyqf sdf2 ttyp5 vcsa46
hde5 ptyr0 sdf3 ttyp6 vcsa47
hde6 ptyr1 sdf4 ttyp7 vcsa48
hde7 ptyr2 sdf5 ttyp8 vcsa49
hde8 ptyr3 sdf6 ttyp9 vcsa5
hde9 ptyr4 sdf7 ttypa vcsa50
hdf ptyr5 sdf8 ttypb vcsa51
hdf1 ptyr6 sdf9 ttypc vcsa52
hdf10 ptyr7 sdg ttypd vcsa53
hdf11 ptyr8 sdg1 ttype vcsa54
hdf12 ptyr9 sdg10 ttypf vcsa55
hdf13 ptyra sdg11 ttyq0 vcsa56
hdf14 ptyrb sdg12 ttyq1 vcsa57
hdf15 ptyrc sdg13 ttyq2 vcsa58
hdf16 ptyrd sdg14 ttyq3 vcsa59
hdf17 ptyre sdg15 ttyq4 vcsa6
hdf18 ptyrf sdg2 ttyq5 vcsa60
hdf19 ptys0 sdg3 ttyq6 vcsa61
hdf2 ptys1 sdg4 ttyq7 vcsa62
hdf20 ptys2 sdg5 ttyq8 vcsa63
hdf3 ptys3 sdg6 ttyq9 vcsa7
hdf4 ptys4 sdg7 ttyqa vcsa8
hdf5 ptys5 sdg8 ttyqb vcsa9
hdf6 ptys6 sdg9 ttyqc xda
hdf7 ptys7 sdh ttyqd xda1
hdf8 ptys8 sdh1 ttyqe xda2
hdf9 ptys9 sdh10 ttyqf xda3
hdg ptysa sdh11 ttyr0 xda4
hdg1 ptysb sdh12 ttyr1 xda5
hdg10 ptysc sdh13 ttyr2 xda6
hdg11 ptysd sdh14 ttyr3 xda7
hdg12 ptyse sdh15 ttyr4 xda8
hdg13 ptysf sdh2 ttyr5 xdb
hdg14 ptyt0 sdh3 ttyr6 xdb1
hdg15 ptyt1 sdh4 ttyr7 xdb2
hdg16 ptyt2 sdh5 ttyr8 xdb3
hdg17 ptyt3 sdh6 ttyr9 xdb4
hdg18 ptyt4 sdh7 ttyra xdb5
hdg19 ptyt5 sdh8 ttyrb xdb6
hdg2 ptyt6 sdh9 ttyrc xdb7
hdg20 ptyt7 sequencer ttyrd xdb8
hdg3 ptyt8 sg0 ttyre zero
hdg4 ptyt9 sg1 ttyrf
hdg5 ptyta sg10 ttys0
hdg6 ptytb sg11 ttys1
timothy@debian:~/current/docker$ docker info
Containers: 95
Images: 231
Storage Driver: aufs
Root Dir: /home/timothy/.docker/aufs
Dirs: 421
Execution Driver: lxc-0.8.0-rc1
Kernel Version: 3.14.0-0.bpo.1-amd64
WARNING: No memory limit support
WARNING: No swap limit support
timothy@debian:~/current/docker$ docker version
Client version: 1.0.0-dev
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): fd32fc8
Server version: 1.0.0-dev
Server API version: 1.12
Go version (server): go1.2.1
Git commit (server): fd32fc8
timothy@debian:~/current/docker$
When using lxc exec driver the
/dev/tmpfs is not mounted correctly and whatever was in/dev/in the image is present in the container, rather than the default devices.--privilegedalso doesn't work properly.