Docker中删除目录报错Device or resource
2018-10-09 本文已影响46人
droid_zf
rm -r /mypath
rm: cannot remove '/mypath': Device or resource busy
直接在容器umount会报umount: /mypath: must be superuser to unmount
需要赋予权限、可访问设备
docker run --name myubuntu --privileged -t -i -v /Users/my/docker:/mypath ubuntu:16.04 /bin/bash
umount /mypath