docker mysql启动失败,无法创建临时文件,权限被拒绝

时间:2015-09-22 09:22:49

标签: mysql docker

ubuntu 14.04
码头工人1.8.2
mysql是最新的官方形象
这是我的命令

vm:~$ docker run --name mysql -d -e MYSQL_ROOT_PASSWORD=123456 mysql

和提示:

Running mysql_install_db
2015-09-22 08:42:13 0 [Note] /usr/sbin/mysqld (mysqld 5.6.26) starting as process 15 ...
2015-09-22 08:42:13 15 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-09-22 08:42:13 15 [Note] InnoDB: The InnoDB memory heap is disabled
2015-09-22 08:42:13 15 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-09-22 08:42:13 15 [Note] InnoDB: Memory barrier is not used
2015-09-22 08:42:13 15 [Note] InnoDB: Compressed tables use zlib 1.2.7
2015-09-22 08:42:13 15 [Note] InnoDB: Using Linux native AIO
2015-09-22 08:42:13 15 [Note] InnoDB: Using CPU crc32 instructions
/usr/sbin/mysqld: Can't create/write to file '/tmp/ibhzPhSc' (Errcode: 13 - Permission denied)
2015-09-22 08:42:13 7f962ed20720  InnoDB: Error: unable to create temporary file; errno: 13
2015-09-22 08:42:13 15 [ERROR] Plugin 'InnoDB' init function returned error.
2015-09-22 08:42:13 15 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-09-22 08:42:13 15 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-09-22 08:42:13 15 [ERROR] Aborting

2015-09-22 08:42:13 15 [Note] Binlog end
2015-09-22 08:42:13 15 [Note] /usr/sbin/mysqld: Shutdown complete

有人有建议吗?

0 个答案:

没有答案