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 Swarm discovery is “file”,Can not create success
  • docker: is it possible to run containers from an other container?
  • Running private docker registry v2 on AWS ECS with SSL and basic auth
  • Including node_modules in a nodejs Docker image, faster builds
  • Ansible docker_container module env file
  • Can I use Windows 10 Insider preview to build a docker image
  • 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?

  • How to tail docker into jq?
  • Keep configuration inside Dockerfile? And is this image production safe?
  • Commandline arguments in docker-compose
  • docker: driver failed programming external connectivity on endpoint webserver
  • How to run maven test with mysql running in docker
  • How to deploy pipelines on user demand in AWS app
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.