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:

  • docker current not installed - bash on ubuntu on windows 10
  • docker Job for docker.service failed because the control process exited with error code
  • Mock Raspberry Pi SPI device on OS X for Docker app
  • Difference between links and depends_on in docker_compose.yml
  • Editing files from dockerfile
  • error while loadingDocker: shared libraries: libsystemd-journal.so.0: cannot open shared object file: No such file or directory
  • 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?

  • Reuse containers with `docker-compose`
  • Unable to connect to database from rails console on dockers
  • Nvidia Theano docker image not available
  • Docker linking container
  • docker-compose with mysql init script
  • Docker Compose with one Terminating Container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.