Docker 错误

May 24, 2016
  1. chown: cannot read directory '/var/lib/mysql/': Permission denied  添加参数  --privileged=true
    1. 例如: docker run --name mysql --privileged=true -v /data/mysqldb:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql
  2. Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
    1. 笔记本电脑弹出提示:需要修改docker的配置文件(/etc/sysconfig/docker-storage)。添加参数:DOCKER_STORAGE_OPTIONS=--storage-opt dm.no_warn_on_loop_devices=true