docker mysql start failed, unable to create temporary file, permission denied

ubuntu 14.04
docker 1.8.2
mysql is latest official image
here is my command

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

and the tips:

  • Can't connect to MySQL docker container
  • How to remove docker container even if root filesystem does not exists?
  • Docker Swarm on Azure: Correct use of docker4x/logger-azure
  • Pulling Docker Images from Private Repository using REGISTRY REST API
  • docker registry with --insecure-registry and docker 1.5
  • How can I mount a volume from a data container while preserving the owner and permissions?
  • 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

    Anyone has suggestion?

  • Docker port not visible
  • make causes core dump when entering an existing container
  • What is the created time in docker images command?
  • How can I push a war from windows system to boot2docker's VM tomcat webapp folder?
  • How to link internal port to outside port in docker?
  • docker: extracting a layer from a image
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.