Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

This image is now deprecated.

Use the official mysql or mariadb image instead.

via docker cli

docker run --rm -p 3306:3306 -e MYSQL_ROOT_PASSWORD=finger --tmpfs=/var/lib/mysql/:rw,noexec,nosuid,size=600m --tmpfs=/tmp/:rw,noexec,nosuid,size=50m mysql:5.7

via docker-compose

  mysql-57:
    image: mysql:5.7
    ports:
     - "3306:3306"
    volumes:
     - "/opt/docker/mysql.conf.d:/etc/mysql/conf.d"
    environment:
     - MYSQL_ROOT_PASSWORD=finger
    tmpfs:
     - /var/lib/mysql/:rw,noexec,nosuid,size=600m
     - /tmp/:rw,noexec,nosuid,size=50m

/opt/docker/mysql.conf.d/custom.cnf

[mysqld]
  bind-address             = 0.0.0.0

  innodb_flush_log_at_trx_commit = 2
  innodb_lock_wait_timeout = 50

  max_connect_errors       = 1000000
  max_connections          = 900

  character-set-server           = utf8
  sql_mode                       = ""
  innodb                         = FORCE
  default-storage-engine         = InnoDB
  max_allowed_packet             = 256M
Docker Pull Command
Owner
gentics
Source Repository

Comments (2)
blurrcat
a year ago

As @jotschi mentioned, Docker supports tmpfs as of 1.10. You can use the official mysql image to run on tmpfs now:

docker run -d --tmpfs /tmpfs:size=200M -p 3306:3306  -v my.cnf:/etc/mysql/my.cnf mysql

where my.cnf is your custom mysql configuration, and you set the data directory to be /tmpfs there.

jotschi
a year ago

Docker 1.10 supports tmpfs using the --tmpfs option. This image has not yet been update to support this option.