Giter VIP home page Giter VIP logo

mariadb-docker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mariadb-docker's Issues

How to include snappy compression?

I'd love to use snappy compression with these images, but there is a lot going on with the official dockerfile. Is there a version of the dockerfile that might include other compression algorithms? If not, can you offer some pointers?

10.1: mkdir: cannot create directory `':

Tried to use 10.1, and got the following on setup that works with latests:

Running mysql_install_db ...
mkdir: cannot create directory `': No such file or directory
Fatal error Can't create database directory ''

The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db

Mariadb Docker container doesn't run from Vagrantfile, does run via vagrant ssh

I'm having a problem getting a mariadb Docker container to run when the VM is provisioned. Here's the relevant part of my Vagrantfile:

Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.provision "docker" do |d|
      d.run "mariadb",
          args: "--name mariadb -e MYSQL_ROOT_PASSWORD=mariadb -d mariadb"
  end
end
antony@antony-Lenovo-IdeaPad-Y510P ~/vagrant $ vagrant up
<snip>
antony@antony-Lenovo-IdeaPad-Y510P ~/vagrant $ vagrant ssh
<snip>
vagrant@vagrant-ubuntu-trusty-64:~$ docker logs mariadb
/docker-entrypoint.sh: line 42: exec: mariadb: not found

Yet, it does seem to work if i ssh into the vagrant VM. See below. What's wrong? Can I provide any more useful info to help you debug this?

antony@antony-Lenovo-IdeaPad-Y510P ~/vagrant $ vagrant ssh
vagrant@vagrant-ubuntu-trusty-64:~$ docker run --name mariadb -e MYSQL_ROOT_PASSWORD=mariadb -d mariadb
9684dc6212843d42f1f82b3c65110879c3483cc3a6589165e2e084cd1074782d
vagrant@vagrant-ubuntu-trusty-64:~$ docker logs mariadb
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
141217 13:05:39 [Note] InnoDB: Using mutexes to ref count buffer pool pages
141217 13:05:39 [Note] InnoDB: The InnoDB memory heap is disabled
141217 13:05:39 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
141217 13:05:39 [Note] InnoDB: Memory barrier is not used
141217 13:05:39 [Note] InnoDB: Compressed tables use zlib 1.2.7
141217 13:05:39 [Note] InnoDB: Using Linux native AIO
141217 13:05:39 [Note] InnoDB: Not using CPU crc32 instructions
141217 13:05:39 [Note] InnoDB: Initializing buffer pool, size = 256.0M
141217 13:05:39 [Note] InnoDB: Completed initialization of buffer pool
141217 13:05:39 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
141217 13:05:39 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
141217 13:05:39 [Note] InnoDB: Database physically writes the file full: wait...
141217 13:05:39 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
141217 13:05:39 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
141217 13:05:40 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
141217 13:05:40 [Warning] InnoDB: New log files created, LSN=45781
141217 13:05:40 [Note] InnoDB: Doublewrite buffer not found: creating new
141217 13:05:40 [Note] InnoDB: Doublewrite buffer created
141217 13:05:40 [Note] InnoDB: 128 rollback segment(s) are active.
141217 13:05:40 [Warning] InnoDB: Creating foreign key constraint system tables.
141217 13:05:40 [Note] InnoDB: Foreign key constraint system tables created
141217 13:05:40 [Note] InnoDB: Creating tablespace and datafile system tables.
141217 13:05:40 [Note] InnoDB: Tablespace and datafile system tables created.
141217 13:05:40 [Note] InnoDB: Waiting for purge to start
141217 13:05:40 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.21-70.0 started; log sequence number 0
141217 13:05:40 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table 'mysql.gtid_slave_pos' doesn't exist
141217 13:05:40 [Note] InnoDB: FTS optimize thread exiting.
141217 13:05:40 [Note] InnoDB: Starting shutdown...
141217 13:05:42 [Note] InnoDB: Shutdown completed; log sequence number 1616697
OK
Filling help tables...
141217 13:05:42 [Note] InnoDB: Using mutexes to ref count buffer pool pages
141217 13:05:42 [Note] InnoDB: The InnoDB memory heap is disabled
141217 13:05:42 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
141217 13:05:42 [Note] InnoDB: Memory barrier is not used
141217 13:05:42 [Note] InnoDB: Compressed tables use zlib 1.2.7
141217 13:05:42 [Note] InnoDB: Using Linux native AIO
141217 13:05:42 [Note] InnoDB: Not using CPU crc32 instructions
141217 13:05:42 [Note] InnoDB: Initializing buffer pool, size = 256.0M
141217 13:05:42 [Note] InnoDB: Completed initialization of buffer pool
141217 13:05:42 [Note] InnoDB: Highest supported file format is Barracuda.
141217 13:05:42 [Note] InnoDB: 128 rollback segment(s) are active.
141217 13:05:42 [Note] InnoDB: Waiting for purge to start
141217 13:05:42 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.21-70.0 started; log sequence number 1616697
141217 13:05:43 [Note] InnoDB: FTS optimize thread exiting.
141217 13:05:43 [Note] InnoDB: Starting shutdown...
141217 13:05:44 [Note] InnoDB: Shutdown completed; log sequence number 1616707
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h 9684dc621284 password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Support MariaDB development by buying support/new features from
SkySQL Ab. You can contact us about this at [email protected].
Alternatively consider joining our community based development effort:
http://mariadb.com/kb/en/contributing-to-the-mariadb-project/

141217 13:05:44 [Note] InnoDB: Using mutexes to ref count buffer pool pages
141217 13:05:44 [Note] InnoDB: The InnoDB memory heap is disabled
141217 13:05:44 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
141217 13:05:44 [Note] InnoDB: Memory barrier is not used
141217 13:05:44 [Note] InnoDB: Compressed tables use zlib 1.2.7
141217 13:05:44 [Note] InnoDB: Using Linux native AIO
141217 13:05:44 [Note] InnoDB: Not using CPU crc32 instructions
141217 13:05:44 [Note] InnoDB: Initializing buffer pool, size = 256.0M
141217 13:05:44 [Note] InnoDB: Completed initialization of buffer pool
141217 13:05:44 [Note] InnoDB: Highest supported file format is Barracuda.
141217 13:05:45 [Note] InnoDB: 128 rollback segment(s) are active.
141217 13:05:45 [Note] InnoDB: Waiting for purge to start
141217 13:05:45 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.21-70.0 started; log sequence number 1616707
141217 13:05:45 [Note] Plugin 'FEEDBACK' is disabled.
141217 13:05:45 [Note] Server socket created on IP: '::'.
141217 13:05:45 [Note] Event Scheduler: Loaded 0 events
141217 13:05:45 [Note] Reading of all Master_info entries succeded
141217 13:05:45 [Note] Added new Master_info '' to hash table
141217 13:05:45 [Note] mysqld: ready for connections.
Version: '10.0.15-MariaDB-1~wheezy-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution

mount as user mysql

Hello i would like to mount a volume as another user than root.
but mysql does not has access to chown: cannot read directory '/var/lib/mysql/': Permission denied

MYSQL_DATABASE does not create database

Seems like this is not working for me according to the docs. I have this in my docker-compose.yml file:

librenms_db:
    image: mariadb
    container_name: librenms_db
    restart: always
    environment:
        - MYSQL_ROOT_PASSWORD=*******
        - MYSQL_DATABASE=librenms
    volumes:
        - /srv/librenms/db:/var/lib/mysql

Here's the logs on startup:

Creating network "docker_default" with the default driver
Creating librenms_db
Attaching to librenms_db
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] mysqld (mysqld 10.1.14-MariaDB-1~jessie) starting as process 1 ...
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Using mutexes to ref count buffer pool pages
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: The InnoDB memory heap is disabled
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Memory barrier is not used
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Compressed tables use zlib 1.2.8
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Using Linux native AIO
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Using SSE crc32 instructions
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Initializing buffer pool, size = 256.0M
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Completed initialization of buffer pool
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Highest supported file format is Barracuda.
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: 128 rollback segment(s) are active.
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB: Waiting for purge to start
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.29-76.2 started; log sequence number 1616935
librenms_db    | 2016-07-09 17:58:43 140122221676288 [Note] InnoDB: Dumping buffer pool(s) not yet started
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] Plugin 'FEEDBACK' is disabled.
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] Server socket created on IP: '::'.
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Warning] 'proxies_priv' entry '@% root@559cb30e132b' ignored in --skip-name-resolve mode.
librenms_db    | 2016-07-09 17:58:43 140123011254208 [Note] mysqld: ready for connections.
librenms_db    | Version: '10.1.14-MariaDB-1~jessie'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution

But then when I list the databases inside the container, the librenms database is not there:

docker exec -it librenms_db bash
root@0f9eea832748:/# echo $MYSQL_DATABASE
librenms
root@0f9eea832748:/# mysql -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 10.1.14-MariaDB-1~jessie mariadb.org binary distribution

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)

leap-seconds.list missing

Same as with mysql: docker-library/mysql#229

During start up:

[...]
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
[...]

Installing the Debian tzdata package resolves the issue.

Fail to mount and initialise DB with /docker-entrypoint-initdb.d

if i set sql file on $(pwd)/init-db, and run this command

docker run -v $(pwd)/init-db:/docker-entrypoint-initdb.d -e MYSQL_ROOT_PASSWORD=tutu
-e MYSQL_DATABASE=tutu -e MYSQL_PASSWORD=tutu mariadb

Mariadb ignore file /docker-entrypoint-initdb.d
"/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* "'

Any php program in a linked container can read the mysql root password

Note: this is a copy of a message about this issue that I wrote as a comment to docker issue #5169 (closed) see moby/moby#5169 (comment)

Although the docker documentation now clearly includes a warning about env variables being propagated to linked containers, this still looks like a real security problem to me, because many images, including official images pass secret information though env variables, and there still doesn't seem to be a good way to pass a private variable to a container at runtime.

This can be illustrated by a very simple php / mysql application using a database container,using the official mariadb image, linked with a php container based on the official php image.

The result is simply that any php program has access to the mysql root password via the env variables:
phpinfo

And really, this is not desirable!

Ok, this could be considered as a bug of the mariadb image and I will also enter it as such...
But my real feeling is that it looks more like a general docker issue.

No TERM env

After creating MariaDB container and logging into shell like this:

docker exec -it my-mariadb bash

trying to login to mysql results in:

root@89dbefe61db1:/# mysql     
TERM environment variable not set.

Temporary solution is:

export TERM=dumb

Better solution is to set it in container configuration, for example:

docker run --name my-mariadb -e MYSQL_ROOT_PASSWORD=qwerty -e TERM=dumb -d mariadb:10.1

But best solution it would be to have it right in the mariadb image ๐Ÿ˜‰

Image: mariadb:10.1, Docker version 1.10.3 build 20f81dd

The Timezone Environment Variable

Could we just do this in docker-entrypoint.sh?

...

if [ "$TIMEZONE" ]; then
  echo $TIMEZONE > /etc/timezone && dpkg-reconfigure -f non interactive tzdata
fi

# sed is for https://bugs.mysql.com/bug.php?id=20545
mysql_tzinfo_to_sql /usr/share/zoneinfo | sed 's/Local time zone must be set--see zic manual page/FCTY/' | "${mysql[@]}" mysql

...

I just need MySQL to run in my local timezone.
Or is there better way to do this?

No debian-sys-maint user in DB

Hi,
I'm new to Docker and I'm configuring MariaDB container. I've noticed that:

  • in /etc/mysql/debian.cnf password for debian-sys-maint is always the same,
  • there is no debian-sys-maint user in DB, and service mysql status gives this result:
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'

I don't know, maybe it doesn't matter in Docker environment?

Edit: image mariadb:10.1, Docker version 1.10.3 build 20f81dd

Entrypoint - can't execute anything as root

Hello,

Since the commit cc686f5 and the use of gosu to launch the main mariadb entrypoint, we can't launch anything as root (all sh are now executed as "mysql" by default or another user). This change has broken a lots of things in our dev container because we need data from host and -v flag mount those data as root.

Can you look at this please ? Or give us a workaround ?

Thank you.

[Question] CentOS 7?

Hey Guys, I am new to docker and teaching myself. Is it easy to make this work in a CentOS Container? I noted in the Docker code there were "get-apt" commands leading me to believe this was a debian based container.

controlling innodb_buffer_pool_size with environment

Hi guys. I normally work with postgresql both on production and development. So i cannot see any reason why should an development database need at least 256mb to run. It would be nice if we could set this with environment variable. I'am also trying to extend your base image to append this argument but it seems that on docker-composer this can only be achieve with we provide an custom Dockerfile (which does not make sense some times).

Thanks :)

database reinitialized unexpectedly

Using docker-compose up -d --force-recreate mariadb will reinitialize the container causing the database to be dropped, deleting all tables.

To reproduce:

  1. Use the docker-compose.yml below.
  2. docker-compose up -d
  3. Create a table in mariadb.
  4. Run docker-compose up -d --force-recreate once or twice.
  5. Notice the table created will be gone and the database will reinitialize.

Is --force-recreate not supported? I have been using this feature for months with no issues until now. I just recently updated to docker 1.10 and docker-compose 1.6.0. I wasn't able to get the container to reinitialize every time, but most of the time it would reinitialize with --force-recreate.

Clearly, this is a major issue for anyone relying on mariadb to store data. Luckily I had a backup of the production site where the databases were dropped unexpectedly.

$ docker version
Client:
 Version:      1.10.1
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   9e83765
 Built:        Fri Feb 12 00:52:02 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.10.1
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   9e83765
 Built:        Fri Feb 12 00:52:02 2016
 OS/Arch:      linux/amd64
$ docker-compose version
docker-compose version 1.6.0, build unknown
docker-py version: 1.7.0
CPython version: 3.5.1
OpenSSL version: OpenSSL 1.0.2f  28 Jan 2016

Here is my docker-compose.yml

mariadb:
  image: mariadb
  environment:
    MYSQL_ROOT_PASSWORD: root_password
    MYSQL_USER: app
    MYSQL_PASSWORD: user_password
    MYSQL_DATABASE: app
    TERM: dumb

log

Attaching to mariadbinit_mariadb_1
mariadb_1 | Initializing database
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] /usr/sbin/mysqld (mysqld 10.1.11-MariaDB-1~jessie) starting as process 56 ...
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Memory barrier is not used
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Compressed tables use zlib 1.2.8
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Using Linux native AIO
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Initializing buffer pool, size = 256.0M
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Database physically writes the file full: wait...
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
mariadb_1 | 2016-02-14 16:27:44 139670445746112 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Warning] InnoDB: New log files created, LSN=45883
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Note] InnoDB: Doublewrite buffer not found: creating new
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Note] InnoDB: Doublewrite buffer created
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Warning] InnoDB: Creating foreign key constraint system tables.
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Note] InnoDB: Foreign key constraint system tables created
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Note] InnoDB: Creating tablespace and datafile system tables.
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Note] InnoDB: Tablespace and datafile system tables created.
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Note] InnoDB: Waiting for purge to start
mariadb_1 | 2016-02-14 16:27:45 139670445746112 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-76.0 started; log sequence number 0
mariadb_1 | 2016-02-14 16:27:45 139669652109056 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] /usr/sbin/mysqld (mysqld 10.1.11-MariaDB-1~jessie) starting as process 84 ...
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Memory barrier is not used
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Compressed tables use zlib 1.2.8
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Using Linux native AIO
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Initializing buffer pool, size = 256.0M
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Highest supported file format is Barracuda.
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB: Waiting for purge to start
mariadb_1 | 2016-02-14 16:27:47 140660426930112 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-76.0 started; log sequence number 1616799
mariadb_1 | 2016-02-14 16:27:48 140659642042112 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] /usr/sbin/mysqld (mysqld 10.1.11-MariaDB-1~jessie) starting as process 113 ...
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Memory barrier is not used
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Compressed tables use zlib 1.2.8
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Using Linux native AIO
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Initializing buffer pool, size = 256.0M
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Highest supported file format is Barracuda.
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB: Waiting for purge to start
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-76.0 started; log sequence number 1616809
mariadb_1 | 2016-02-14 16:27:50 140554620864256 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1 | ERROR: 1049  Unknown database 'test'
mariadb_1 | 2016-02-14 16:27:50 140555404093376 [ERROR] Aborting
mariadb_1 | 
mariadb_1 | 
mariadb_1 | WARNING: OPENGIS REQUIRED SP-S WERE NOT COMPLETELY INSTALLED!
mariadb_1 | GIS extentions might not work properly.
mariadb_1 | 
mariadb_1 | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
mariadb_1 | To do so, start the server, then issue the following commands:
mariadb_1 | 
mariadb_1 | '/usr/bin/mysqladmin' -u root password 'new-password'
mariadb_1 | '/usr/bin/mysqladmin' -u root -h  password 'new-password'
mariadb_1 | 
mariadb_1 | Alternatively you can run:
mariadb_1 | '/usr/bin/mysql_secure_installation'
mariadb_1 | 
mariadb_1 | which will also give you the option of removing the test
mariadb_1 | databases and anonymous user created by default.  This is
mariadb_1 | strongly recommended for production servers.
mariadb_1 | 
mariadb_1 | See the MariaDB Knowledgebase at http://mariadb.com/kb or the
mariadb_1 | MySQL manual for more instructions.
mariadb_1 | 
mariadb_1 | Please report any problems at http://mariadb.org/jira
mariadb_1 | 
mariadb_1 | The latest information about MariaDB is available at http://mariadb.org/.
mariadb_1 | You can find additional information about the MySQL part at:
mariadb_1 | http://dev.mysql.com
mariadb_1 | Support MariaDB development by buying support/new features from MariaDB
mariadb_1 | Corporation Ab. You can contact us about this at [email protected].
mariadb_1 | Alternatively consider joining our community based development effort:
mariadb_1 | http://mariadb.com/kb/en/contributing-to-the-mariadb-project/
mariadb_1 | 
mariadb_1 | Database initialized
mariadb_1 | MySQL init process in progress...
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] mysqld (mysqld 10.1.11-MariaDB-1~jessie) starting as process 140 ...
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Memory barrier is not used
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Compressed tables use zlib 1.2.8
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Using Linux native AIO
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Initializing buffer pool, size = 256.0M
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Highest supported file format is Barracuda.
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1 | 2016-02-14 16:27:52 140311906154432 [Note] InnoDB: Waiting for purge to start
mariadb_1 | 2016-02-14 16:27:53 140311906154432 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-76.0 started; log sequence number 1616819
mariadb_1 | 2016-02-14 16:27:53 140311116351232 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1 | 2016-02-14 16:27:53 140311906154432 [Note] Plugin 'FEEDBACK' is disabled.
mariadb_1 | 2016-02-14 16:27:53 140311906154432 [Warning] 'user' entry 'root@884b4f5d628e' ignored in --skip-name-resolve mode.
mariadb_1 | 2016-02-14 16:27:53 140311906154432 [Warning] 'proxies_priv' entry '@% root@884b4f5d628e' ignored in --skip-name-resolve mode.
mariadb_1 | 2016-02-14 16:27:53 140311906154432 [Note] mysqld: ready for connections.
mariadb_1 | Version: '10.1.11-MariaDB-1~jessie'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
mariadb_1 | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
mariadb_1 | 2016-02-14 16:27:54 140311905590016 [Warning] 'proxies_priv' entry '@% root@884b4f5d628e' ignored in --skip-name-resolve mode.
mariadb_1 | 2016-02-14 16:27:54 140311905590016 [Warning] 'proxies_priv' entry '@% root@884b4f5d628e' ignored in --skip-name-resolve mode.
mariadb_1 | 
mariadb_1 | /docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
mariadb_1 | 
mariadb_1 | 2016-02-14 16:27:54 140311905286912 [Note] mysqld: Normal shutdown
mariadb_1 | 
mariadb_1 | 2016-02-14 16:27:54 140311905286912 [Note] Event Scheduler: Purging the queue. 0 events
mariadb_1 | 2016-02-14 16:27:54 140311099565824 [Note] InnoDB: FTS optimize thread exiting.
mariadb_1 | 2016-02-14 16:27:54 140311905286912 [Note] InnoDB: Starting shutdown...
mariadb_1 | 2016-02-14 16:27:57 140311905286912 [Note] InnoDB: Shutdown completed; log sequence number 1616829
mariadb_1 | 2016-02-14 16:27:57 140311905286912 [Note] mysqld: Shutdown complete
mariadb_1 | 
mariadb_1 | 
mariadb_1 | MySQL init process done. Ready for start up.
mariadb_1 | 
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] mysqld (mysqld 10.1.11-MariaDB-1~jessie) starting as process 1 ...
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Memory barrier is not used
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Compressed tables use zlib 1.2.8
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Using Linux native AIO
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Initializing buffer pool, size = 256.0M
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Highest supported file format is Barracuda.
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB: Waiting for purge to start
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-76.0 started; log sequence number 1616829
mariadb_1 | 2016-02-14 16:27:57 139960468342528 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] Plugin 'FEEDBACK' is disabled.
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] Server socket created on IP: '::'.
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Warning] 'proxies_priv' entry '@% root@884b4f5d628e' ignored in --skip-name-resolve mode.
mariadb_1 | 2016-02-14 16:27:57 139961255913408 [Note] mysqld: ready for connections.
mariadb_1 | Version: '10.1.11-MariaDB-1~jessie'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution

bind mount crashing

I'm trying to use a host bind mount to store mariadb data. It crashes when I bind mount from the host.

I'm changing uid and gid on mysql user and group inside the image to match what I have in OS X. This is what I'm trying to debug with:

$ mkdir data
$ sudo chmod 777 data
$ docker run --rm -it -v $(pwd)/data:/var/lib/mysql -e MYSQL_RANDOM_ROOT_PASSWORD=1 mariadb:10.1.14 /bin/bash
root@e4a910a2dc22:/# usermod -o -u 501 mysql #501 is my uid in os x
root@e4a910a2dc22:/# groupmod -o -g 20 mysql #20 is my gid in os x
root@e4a910a2dc22:/# mysql_install_db --user=mysql --datadir="/var/lib/mysql" --rpm
2016-05-16 10:38:15 139680758392768 [Note] /usr/sbin/mysqld (mysqld 10.1.14-MariaDB-1~jessie) starting as process 80 ...
2016-05-16 10:38:15 139680758392768 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-05-16 10:38:15 139680758392768 [Note] InnoDB: The InnoDB memory heap is disabled
2016-05-16 10:38:15 139680758392768 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-05-16 10:38:15 139680758392768 [Note] InnoDB: Memory barrier is not used
2016-05-16 10:38:15 139680758392768 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-05-16 10:38:15 139680758392768 [Note] InnoDB: Using Linux native AIO
2016-05-16 10:38:15 139680758392768 [Note] InnoDB: Using SSE crc32 instructions
2016-05-16 10:38:15 139680758392768 [Note] InnoDB: Initializing buffer pool, size = 256.0M
2016-05-16 10:38:15 139680758392768 [Note] InnoDB: Completed initialization of buffer pool
2016-05-16 10:38:15 139680758392768 [ERROR] InnoDB: Tried to read 16384 bytes at offset 81920. Was only able to read 0.
2016-05-16 10:38:15 7f09f5fc67c0  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: Fatal error: cannot read from file. OS error number 13.
2016-05-16 10:38:15 7f09f5fc67c0  InnoDB: Assertion failure in thread 139680758392768 in file os0file.cc line 3177
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
160516 10:38:15 [ERROR] mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.

To report this bug, see https://mariadb.com/kb/en/reporting-bugs

We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

Server version: 10.1.14-MariaDB-1~jessie
key_buffer_size=134217728
read_buffer_size=2097152
max_used_connections=0
max_threads=102
thread_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 759828 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x0 thread_stack 0x48400
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x560a17fe98be]
/usr/sbin/mysqld(handle_fatal_signal+0x34d)[0x560a17b2b92d]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7f09f5ba88d0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7f09f3c99067]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f09f3c9a448]
/usr/sbin/mysqld(+0x76ba6e)[0x560a17cf5a6e]
/usr/sbin/mysqld(+0x85bc07)[0x560a17de5c07]
/usr/sbin/mysqld(+0x7e6e24)[0x560a17d70e24]
/usr/sbin/mysqld(+0x70bc10)[0x560a17c95c10]
/usr/sbin/mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x64)[0x560a17b2db94]
/usr/sbin/mysqld(+0x42b23a)[0x560a179b523a]
/usr/sbin/mysqld(_Z11plugin_initPiPPci+0x92a)[0x560a179b6a0a]
/usr/sbin/mysqld(+0x388356)[0x560a17912356]
/usr/sbin/mysqld(_Z11mysqld_mainiPPc+0x9e3)[0x560a179165b3]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f09f3c85b45]
/usr/sbin/mysqld(+0x38008d)[0x560a1790a08d]
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

Installation of system tables failed!  Examine the logs in
/var/lib/mysql for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

    shell> /usr/scripts/scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

    shell> /usr/sbin/mysqld --skip-grant --general-log &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/bin/mysql -u root mysql
    mysql> show tables;

Try 'mysqld --help' if you have problems with paths.  Using
--general-log gives you a log in /var/lib/mysql that may be helpful.

The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before submitting a bug report
at http://mariadb.org/jira

root@e4a910a2dc22:/# ls -la /var/lib/mysql/
total 110596
drwxrwxrwx  6 mysql dialout      204 May 16 10:38 .
drwxr-xr-x 17 root  root        4096 May 12 18:05 ..
-rw-rw----  1 mysql dialout 50331648 May 16 10:35 ib_logfile1
-rw-rw----  1 mysql dialout 50331648 May 16 10:35 ib_logfile101
-rw-rw----  1 mysql dialout 12582912 May 16 10:35 ibdata1
drwx------  2 mysql dialout       68 May 16 10:35 mysql
root@34997a7e4238:/# id mysql
uid=501(mysql) gid=20(dialout) groups=20(dialout)
root@34997a7e4238:/# cat /etc/group | grep mysql
mysql:x:20:

As you can see, it seems to write initial files properly, but InnoDB seems to choke on reading them, claiming it does not have access rights to the directory. What else can I do to grant it access?

docker run --rm -e MYSQL_RANDOM_ROOT_PASSWORD=1 mariadb:10.1.14 works without problem.

$ docker -v
Docker version 1.11.1, build 5604cbe
$ docker-machine -v
docker-machine version 0.7.0, build a650a40

Change-to/Provide Alpine

As many other official images have moved to provide alpine flavor already it would be great if mysql, mariadb and postgres did the same. But these images using debian packages probably makes that easier said than done.

Publish MariaDB 10.1

Since MariaDB 10.1.10 now working fine under Docker (I've tested it even with replication) and repository includes scripts for MariaDB 10.1 I think it is time to publish 10.1.10 tag, update readme on Docker Hub and make 10.1 tag pointing to 10.1.10 build.
I have dependent image and thought that 10.1.10 is already there, but build failed because 10.1 is in fact still 10.1.3.

MYSQL_ONETIME_PASSWORD does not have an effect

I am trying to use MYSQL_ONETIME_PASSWORD environment variable to force user to change password but it seems like it does not have any effect - I can re-login indefinitely.

Also I do not see mention of this option in entrypoint file, unlike, for example, MYSQL_RANDOM_ROOT_PASSWORD

version: '2'
services:
  mariadb:
    image: mariadb:10
    restart: always
    ports:
      - "3306:3306"
    volumes:
      - ~/data/mariadb:/var/lib/mysql
    environment:
      - MYSQL_ONETIME_PASSWORD=yes
      - MYSQL_ROOT_PASSWORD=passwd

Ctrl+C does not kill mysqld

The docker container does not stop on CTRL+C like any other programm would do.

After starting a non-detached (i.e. missing -d parameter) maridb docker instance via:
$ docker run --name some-mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw mariadb
I'm unable to issue CTRL+C - its just ignored. It only reacts on docker stop some-mariadb

In combination with docker-compose this is really an issue: It seems when issuing docker-compose stop, just a CTRL+C signal is sent to the docker container until the timeout of docker-compose is reached (10s per default). However, the docker container seems to do no "Normal shutdown".
On docker-compose timeout, the docker container instance is just killed. As a result the mysql table is always corrupt and needs to be repaired on next boot.

Add the possibility to accept host or disable binding

I am using mariadb 10.0.19 with dnsdock to avoid hard links between fpm and mariadb.

This is my docker-compose file

dnsdock:
  image: tonistiigi/dnsdock
  hostname: dnsdock
  command: -ttl=30
  restart: always
  dns:
    - 172.17.42.1
    - 8.8.8.8
  ports:
    - "8080:80"
    - "172.17.42.1:53:53/udp"
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock

wordpress:
  image: wordpress:fpm
  environment:
    WORDPRESS_DB_HOST: mariadb.docker
    WORDPRESS_DB_USER: wp
    WORDPRESS_DB_PASSWORD: "1234"
  volumes:
    - /data/wp:/var/www/html

mariadb:
  image: mariadb:10.0.19
  volumes:
    - /data/mariadb:/var/lib/mysql
  environment:
    MYSQL_USER: wp
    MYSQL_PASSWORD: "1234"
    MYSQL_ROOT_PASSWORD: "1234root"
...
mariadb_1   | 150526 11:08:01 [Note] Plugin 'FEEDBACK' is disabled.
mariadb_1   | 150526 11:08:01 [Note] Server socket created on IP: '::'.
mariadb_1   | 150526 11:08:01 [Note] Event Scheduler: Loaded 0 events
mariadb_1   | 150526 11:08:01 [Note] Reading of all Master_info entries succeded
mariadb_1   | 150526 11:08:01 [Note] Added new Master_info '' to hash table
mariadb_1   | 150526 11:08:01 [Note] mysqld: ready for connections.
mariadb_1   | Version: '10.0.19-MariaDB-1~wheezy-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
mariadb_1   | 150526 11:08:01 [Warning] IP address '172.17.1.50' could not be resolved: Name or service not known
wordpress_1 | 
wordpress_1 | Warning: mysqli::mysqli(): (HY000/1130): Host '172.17.1.50' is not allowed to connect to this MariaDB server in - on line 10
wordpress_1 | 
wordpress_1 | MySQL Connection Error: (1130) Host '172.17.1.50' is not allowed to connect to this MariaDB server

The problem is that wordpress '172.17.1.50` is not allowed in mariadb. So I need to have a way to add a host to mariadb or disable the binding. Of course I can change that myself in the dockerfile but then I would have to fork the official image and work on my own with that, which I would like to avoid.

Default charset and collation for database

Currently if I define a database to be created on startup, like:

db:
  image: mariadb:10.0
  environment:
    MYSQL_DATABASE: mydbname

The database gets created through CREATE DATABASE IF NOT EXISTS $MYSQL_DATABASE; command.

Would it make senses to have DEFAULT CHARSET utf8 COLLATE utf8_unicode_ci to the create command since that seems to be the recommended standard in most setup (at least for the Framework I'm using :D)?

If that is not preferred, at least an option that I can define it myself should be available as variable in docker-compose.yml

Implement HEALTHCHECK instruction

There is a new Dockerfile instruction HEALTHCHECK what is useful for detecting if container is still starting (and other should wait) or unhealthy.

It it enought to write something like this?

HEALTHCHECK CMD mysql --user=$MYSQL_USER --password=$MYSQL_PASSWORD -e "show databases;"

Support Galera Replication

To use this docker image in production, it would be very nice to be able to run it with replication, to maintain some redundancy.

The bitnami/mariadb image already does this, but they don't have the 10.x versions.

mariadb 10.1.3 is not working

The mariadb image with version 10.1.3 is broken currently:

docker run --rm -e MYSQL_ROOT_PASSWORD=password mariadb:10.1.3
Running mysql_install_db ...
mkdir: cannot create directory `': No such file or directory
Fatal error Can't create database directory ''

The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db

Version 10.1.2 is working fine though.

Option to run mysql_update on existing datadir

Hi,
I'm trying to migrate from MySQL to MariaDB 10.1 and I see there is no mysql_update procedure before mysqld starts inside docker-entrypoint.sh. It would be great if it was somehow passed as an option and it would run when requested. Or perhaps on every start.

Warning: World-writable config file ...

Hi, I've tried to run mariadb with docker-compose.yml, with simple configuration:

version: '2'
services:
  mariadb:
    image: mariadb
    environment:
      MYSQL_ROOT_PASSWORD: test
      MYSQL_USER: test
      MYSQL_PASSWORD: test
      MYSQL_DATABASE: test
    volumes:
      - ./docker/mysql/mysql.cnf:/etc/mysql/conf.d/phabricator.cnf:ro

Contents of /docker/mysql/mysql.cnf:

[mysqld]
sql_mode=STRICT_ALL_TABLES
ft_stopword_file=/opt/phabricator/resources/sql/stopwords.txt
ft_min_word_len=3
innodb_buffer_pool_size=410M
ft_boolean_syntax=' |-><()~*:""&^'
max_allowed_packet=33554432

Docker info

Containers: 3
 Running: 3
 Paused: 0
 Stopped: 0
Images: 155
Server Version: 1.11.2
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 110
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null host
Kernel Version: 4.4.12-boot2docker
Operating System: Boot2Docker 1.11.2 (TCL 7.1); HEAD : a6645c3 - Wed Jun  1 22:59:51 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 995.9 MiB
Name: b2d-vagrant
ID: AFJD:COEF:DYKW:NQY4:5LS5:3Y4D:FSL7:TQZK:YDNS:XQNN:HWMA:S7RA
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug mode (client): false
Debug mode (server): true
 File Descriptors: 41
 Goroutines: 68
 System Time: 2016-08-02T16:42:26.606343039Z
 EventsListeners: 0
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox

Docker version:

Client:                                               
 Version:      1.11.2                                 
 API version:  1.23                                   
 Go version:   go1.5.4                                
 Git commit:   b9f10c9                                
 Built:        Wed Jun  1 21:20:08 2016               
 OS/Arch:      linux/amd64                            

Server:                                               
 Version:      1.11.2                                 
 API version:  1.23                                   
 Go version:   go1.5.4                                
 Git commit:   b9f10c9                                
 Built:        Wed Jun  1 21:20:08 2016               
 OS/Arch:      linux/amd64                            

Failing to intialize

Hey yall,

How do I get this image to run for a "my-small.cnf" / "my-meduim.cnf" type setup?? Where you have less than 512MB available, like for instance on a Digitial Ocean droplet.

I am getting this error:

2016-03-05 13:31:21 139704878696384 [Note] mysqld (mysqld 10.1.12-MariaDB-1~jessie) starting as process 1 ...
2016-03-05 13:31:21 139704878696384 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-03-05 13:31:21 139704878696384 [Note] InnoDB: The InnoDB memory heap is disabled
2016-03-05 13:31:21 139704878696384 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-03-05 13:31:21 139704878696384 [Note] InnoDB: Memory barrier is not used
2016-03-05 13:31:21 139704878696384 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-03-05 13:31:21 139704878696384 [Note] InnoDB: Using Linux native AIO
2016-03-05 13:31:21 139704878696384 [Note] InnoDB: Using SSE crc32 instructions
2016-03-05 13:31:21 139704878696384 [Note] InnoDB: Initializing buffer pool, size = 256.0M
InnoDB: mmap(276824064 bytes) failed; errno 12
2016-03-05 13:31:21 139704878696384 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2016-03-05 13:31:21 139704878696384 [ERROR] Plugin 'InnoDB' init function returned error.
2016-03-05 13:31:21 139704878696384 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-03-05 13:31:21 139704878696384 [ERROR] mysqld: Out of memory (Needed 128663552 bytes)
2016-03-05 13:31:21 139704878696384 [Note] Plugin 'FEEDBACK' is disabled.
2016-03-05 13:31:21 139704878696384 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2016-03-05 13:31:21 139704878696384 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-03-05 13:31:21 139704878696384 [ERROR] Aborting

Note

2016-03-05 13:31:21 139704878696384 [Note] InnoDB: Initializing buffer pool, size = 256.0M
InnoDB: mmap(276824064 bytes) failed; errno 12

I need to be able to set the pool size to for instance 128MB / 64MB, but the image already contains this conf /etc/mysql/my.cnf with these values hard coded. What is the best way to do this? I do not really want to build it from this Dockerfile, and then have to maintain updates manually. It would be a pain in the a.

on windows, cannot start a container with host directory as /var/lib/mysql mount

Tried running a mariadb container by mounting a host directory but does not even start with no logs. My goal is to not lose the data.

$ docker run -e MYSQL_ROOT_PASSWORD=user -v //c/Users/docker-workspace/mariadb-data-dir:/var/lib/mysql -d mariadb
$ docker logs 9309b32a7582
2016-01-28  4:48:44 139801728346048 [Note] mysqld (mysqld 10.1.10-MariaDB-1~jessie) starting as process 1 ...
2016-01-28  4:48:44 139801728346048 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: The InnoDB memory heap is disabled
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Memory barrier is not used
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Using Linux native AIO
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Using SSE crc32 instructions
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Initializing buffer pool, size = 256.0M
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Completed initialization of buffer pool
2016-01-28  4:48:44 139801728346048 [Warning] InnoDB: Failed to set O_DIRECT on file ./ibdata1: OPEN: Invalid argument, continuing anyway. O_DIRECT is known to result in 'Invalid argument' on Linux on tmpfs, see MySQL Bug#26662.
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Highest supported file format is Barracuda.
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: 128 rollback segment(s) are active.
2016-01-28  4:48:44 139801728346048 [Note] InnoDB: Waiting for purge to start
2016-01-28  4:48:44 139801728346048 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.26-76.0 started; log sequence number 1600729
2016-01-28  4:48:44 139800942184192 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-01-28  4:48:44 139801728346048 [Note] Plugin 'FEEDBACK' is disabled.
2016-01-28  4:48:44 139801728346048 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2016-01-28  4:48:44 139801728346048 [Note] Recovering after a crash using tc.log
2016-01-28  4:48:44 139801728346048 [ERROR] Can't init tc log
2016-01-28  4:48:44 139801728346048 [ERROR] Aborting

Syntax error in /docker-entrypoint.sh

I use your build for the base of my Docker MariaDB image. You can see my build here: https://github.com/DJviolin/LEMP/blob/master/mariadb/Dockerfile

I've got the following error when I try to launch with docker-compose:

Dec 11 15:53:19 core-01 docker-compose[25499]: Step 18 : CMD mysqld
Dec 11 15:53:19 core-01 docker-compose[25499]: ---> Running in 46f02153fe6f
Dec 11 15:53:21 core-01 docker-compose[25499]: ---> 0ddcd74ebe62
Dec 11 15:53:22 core-01 docker-compose[25499]: Removing intermediate container 46f02153fe6f
Dec 11 15:53:22 core-01 docker-compose[25499]: Successfully built 0ddcd74ebe62
Dec 11 15:53:22 core-01 docker-compose[25499]: Creating lanti-debian-mariadb
Dec 11 15:53:22 core-01 docker-compose[25499]: Creating sqlbackup
Dec 11 15:53:23 core-01 docker-compose[25499]: Attaching to lanti-debian-base, lanti-debian-web, lanti-debian-mariadb, sqlbackup
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:52,987 CRIT Supervisor running as root (no user in config file)
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:52,987 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:53,005 INFO RPC interface 'supervisor' initialized
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:53,005 CRIT Server 'unix_http_server' running without any HTTP authentication checking
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:53,006 INFO supervisord started with pid 1
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:54,008 INFO spawned: 'nginx' with pid 8
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-mariadb | /docker-entrypoint.sh: line 102: warning: here-document at line 49 delimited by end-of-file (wanted `EOSQL')
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-mariadb | /docker-entrypoint.sh: line 103: syntax error: unexpected end of file
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-base exited with code 0
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:54,016 INFO spawned: 'sshd' with pid 9
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:54,035 INFO spawned: 'php-fpm' with pid 10
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:55,194 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:55,194 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-web     | 2015-12-11 15:48:55,194 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Dec 11 15:53:23 core-01 docker-compose[25499]: lanti-debian-mariadb exited with code 2

Is there any syntax error in /docker-entrypoint.sh?

-e variables not executing on startup

In the docker-entrypoint.sh, everything within this if block does not execute:

if [ ! -d "$DATADIR/mysql" ]; then

I tested by adding an else statement to it and echoing out some random statement, which did execute. It seems most of the contents within the if block need to execute in order to do things like set the root password being passed in, etc.

Has this been tested? I eliminated the if statements completely, but then mysql won't run at all.

10.1.3 Image Broken

Basic high school level QA isn't being done on MariaDB's Docker images, and the 10.1.3 image is a non-functional release.

Change download url to not use a fixed mirror

Currently the mirror of the Oregon State University is used to download the MariaDB packages.
I wonder why a mirror is used at all here?

I didn't found the original sources for Debian Packages, maybe MariaDB can be asked for that.

The generic packed sources can be found on GitHub or on https://downloads.mariadb.org/f/mariadb-$VERSION/source/mariadb-$VERSION.tar.gz which redirects to a mirror near you.

Option to not initialise database

Can you please give the option to not initialise the database on startup via an envvar? Otherwise this will not work well with Galera SST, as it attempts to do SST during entrypoint init.

Database initialization and Galera replication

Hi,

I've run into this issue and I would like to ask if there is a better way and share my workaround.

I used image mariadb:10 and I have galera related configuration in galera.cnf that I mound in /etc/mysql/conf.d/galera.cnf.

docker run -v $(pwd)/galera.cnf:/etc/mysql/conf.d mariadb:10

When starting a new container without any data as soon as the initialization starts galera replication interferes.

My workaround is to change line 49 in the entrypoint script
https://github.com/docker-library/mariadb/blob/master/docker-entrypoint.sh#L49

to:
"$@" --skip-networking --wsrep_on=OFF &

This will disable galera replication during initial db setup.

Is there a better way to handle this?

Problem with Dockerfile 10.n

When trying to build an image using this dockerfile (10.0 & 10.1) I receive the following error.
I even get the error if I create my own docker file with the FROM set as mariadb:latest.

Step 27 : RUN { echo mariadb-server-$MARIADB_MAJOR mysql-server/root_password password 'unused'; echo mariadb-server-$MARIADB_MAJOR mysql-server/root_password_again password 'unused'; } | debconf-set-selections && apt-get update && apt-get install -y mariadb-server=$MARIADB_VERSION percona-xtrabackup socat && rm -rf /var/lib/apt/lists/* && sed -ri 's/^user\s/#&/' /etc/mysql/my.cnf /etc/mysql/conf.d/* && rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql /var/run/mysqld && chown -R mysql:mysql /var/lib/mysql /var/run/mysqld && chmod 777 /var/run/mysqld
---> Running in 727bbd0e2c6a
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:2 http://ftp.osuosl.org jessie InRelease [2488 B]
E: The method driver /usr/lib/apt/methods/https could not be found.
The command '/bin/sh -c { echo mariadb-server-$MARIADB_MAJOR mysql-server/root_password password 'unused'; echo mariadb-server-$MARIADB_MAJOR mysql-server/root_password_again password 'unused'; } | debconf-set-selections && apt-get update && apt-get install -y mariadb-server=$MARIADB_VERSION percona-xtrabackup socat && rm -rf /var/lib/apt/lists/* && sed -ri 's/^user\s/#&/' /etc/mysql/my.cnf /etc/mysql/conf.d/* && rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql /var/run/mysqld && chown -R mysql:mysql /var/lib/mysql /var/run/mysqld && chmod 777 /var/run/mysqld' returned a non-zero code: 100

database not created on startup

When I specify MYSQL_DATABASE environment variable, database is not auto-created on startup using image mariadb:10.1 9a0138c02438

TokuDB Storage Engine Support

Although MariaDB has had TokuDB engine support built in for a while -- the docker standard docker containers don't really support it very well. To whit -- the THP should at least be checked and if not disabled then error out if wanting TokuDB ..

So maybe have an ENV variable indicating wanting TokuDB (at all) and maybe as the default for new DB's .. and

1 -- checking THP support

2 -- Loading the module

3 -- Setting TokuDB as the default storage engine (extra option ENV maybe?)

Now granted one can do #2 and #3 fairly easily via additional or new .cnf.d etc. type files, but #1 not so much .. ??

Fails to run with MySQL init process failed.

I'm running a simple docker-compose file with mariadb, that is then going to be used by wordpress.

version: '2'

volumes:
  db:
    driver: local

services:
  db:
    image: mariadb:10
    environment:
      MYSQL_HOST: db
      MYSQL_ROOT_PASSWORD: wordpress
      MYSQL_DATABASE: wordpress
      MYSQL_USER: wordpress
      MYSQL_PASSWORD: wordpress
    ports:
      - "3306:3306"
    volumes:
      - db:/var/lib/mysql

But when I run docker-compose up it fails.

I first thought it might be a memory problem so I upped the virtualbox instance to 2gb of ram, but still the same problem happens.

If I try to login to the docker instance docker exec -it mydir_db_1 bash and try to connect with the same command as in the entrypoint file

mysql --protocol=socket -uroot

I get ERROR 2047 (HY000): Wrong or unknown protocol
Don't know if that's a clue...

db_1 | Initializing database
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] /usr/sbin/mysqld (mysqld 10.1.12-MariaDB-1~jessie) starting as process 51 ...
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Using mutexes to ref count buffer pool pages
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: The InnoDB memory heap is disabled
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Memory barrier is not used
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Using Linux native AIO
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Using SSE crc32 instructions
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Initializing buffer pool, size = 256.0M
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Completed initialization of buffer pool
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Database physically writes the file full: wait...
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
db_1 | 2016-02-27 21:44:24 140131101788096 [Warning] InnoDB: New log files created, LSN=45883
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Doublewrite buffer not found: creating new
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Doublewrite buffer created
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: 128 rollback segment(s) are active.
db_1 | 2016-02-27 21:44:24 140131101788096 [Warning] InnoDB: Creating foreign key constraint system tables.
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Foreign key constraint system tables created
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Creating tablespace and datafile system tables.
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Tablespace and datafile system tables created.
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB: Waiting for purge to start
db_1 | 2016-02-27 21:44:24 140131101788096 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 0
db_1 | 2016-02-27 21:44:24 140130316683008 [Note] InnoDB: Dumping buffer pool(s) not yet started
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] /usr/sbin/mysqld (mysqld 10.1.12-MariaDB-1~jessie) starting as process 80 ...
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Using mutexes to ref count buffer pool pages
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: The InnoDB memory heap is disabled
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Memory barrier is not used
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Using Linux native AIO
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Using SSE crc32 instructions
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Initializing buffer pool, size = 256.0M
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Completed initialization of buffer pool
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Highest supported file format is Barracuda.
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: 128 rollback segment(s) are active.
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB: Waiting for purge to start
db_1 | 2016-02-27 21:44:27 139881937319872 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 1616799
db_1 | 2016-02-27 21:44:27 139881154053888 [Note] InnoDB: Dumping buffer pool(s) not yet started
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] /usr/sbin/mysqld (mysqld 10.1.12-MariaDB-1~jessie) starting as process 109 ...
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Using mutexes to ref count buffer pool pages
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: The InnoDB memory heap is disabled
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Memory barrier is not used
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Using Linux native AIO
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Using SSE crc32 instructions
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Initializing buffer pool, size = 256.0M
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Completed initialization of buffer pool
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Highest supported file format is Barracuda.
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: 128 rollback segment(s) are active.
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB: Waiting for purge to start
db_1 | 2016-02-27 21:44:29 140319628658624 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 1616809
db_1 | 2016-02-27 21:44:29 140318842259200 [Note] InnoDB: Dumping buffer pool(s) not yet started
db_1 | ERROR: 1049  Unknown database 'test'
db_1 | 2016-02-27 21:44:29 140319628658624 [ERROR] Aborting
db_1 | 
db_1 | 
db_1 | WARNING: OPENGIS REQUIRED SP-S WERE NOT COMPLETELY INSTALLED!
db_1 | GIS extentions might not work properly.
db_1 | 
db_1 | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
db_1 | To do so, start the server, then issue the following commands:
db_1 | 
db_1 | '/usr/bin/mysqladmin' -u root password 'new-password'
db_1 | '/usr/bin/mysqladmin' -u root -h  password 'new-password'
db_1 | 
db_1 | Alternatively you can run:
db_1 | '/usr/bin/mysql_secure_installation'
db_1 | 
db_1 | which will also give you the option of removing the test
db_1 | databases and anonymous user created by default.  This is
db_1 | strongly recommended for production servers.
db_1 | 
db_1 | See the MariaDB Knowledgebase at http://mariadb.com/kb or the
db_1 | MySQL manual for more instructions.
db_1 | 
db_1 | Please report any problems at http://mariadb.org/jira
db_1 | 
db_1 | The latest information about MariaDB is available at http://mariadb.org/.
db_1 | You can find additional information about the MySQL part at:
db_1 | http://dev.mysql.com
db_1 | Support MariaDB development by buying support/new features from MariaDB
db_1 | Corporation Ab. You can contact us about this at [email protected].
db_1 | Alternatively consider joining our community based development effort:
db_1 | http://mariadb.com/kb/en/contributing-to-the-mariadb-project/
db_1 | 
db_1 | Database initialized
db_1 | MySQL init process in progress...
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] mysqld (mysqld 10.1.12-MariaDB-1~jessie) starting as process 136 ...
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Using mutexes to ref count buffer pool pages
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: The InnoDB memory heap is disabled
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Memory barrier is not used
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Using Linux native AIO
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Using SSE crc32 instructions
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Initializing buffer pool, size = 256.0M
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Completed initialization of buffer pool
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Highest supported file format is Barracuda.
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: 128 rollback segment(s) are active.
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB: Waiting for purge to start
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 1616819
db_1 | 2016-02-27 21:44:32 139646403053312 [Note] InnoDB: Dumping buffer pool(s) not yet started
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] Plugin 'FEEDBACK' is disabled.
db_1 | 2016-02-27 21:44:32 139647187081152 [Warning] 'user' entry 'root@7419339e9969' ignored in --skip-name-resolve mode.
db_1 | 2016-02-27 21:44:32 139647187081152 [Warning] 'proxies_priv' entry '@% root@7419339e9969' ignored in --skip-name-resolve mode.
db_1 | 2016-02-27 21:44:32 139647187081152 [Note] mysqld: ready for connections.
db_1 | Version: '10.1.12-MariaDB-1~jessie'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process in progress...
db_1 | MySQL init process failed.

Any suggestions?

Error when building from the 10.1 dockerfile

I'm attaching the entire process which :

Terrence-MBP:10.1 tbunkley$ docker build .
Sending build context to Docker daemon 10.75 kB
Step 1 : FROM debian:jessie
 ---> ddf73f48a05d
Step 2 : RUN groupadd -r mysql && useradd -r -g mysql mysql
 ---> Running in 7191e1130f9f
 ---> 6ea60e7bd6ea
Removing intermediate container 7191e1130f9f
Step 3 : ENV GOSU_VERSION 1.7
 ---> Running in 72b0f7338246
 ---> 29ada76c0aa5
Removing intermediate container 72b0f7338246
Step 4 : RUN set -x     && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/*     && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)"   && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"   && export GNUPGHOME="$(mktemp -d)"  && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4  && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu     && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc   && chmod +x /usr/local/bin/gosu     && gosu nobody true     && apt-get purge -y --auto-remove ca-certificates wget
 ---> Running in 26a43d0a7515
+ apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://httpredir.debian.org jessie InRelease
Get:2 http://httpredir.debian.org jessie-updates InRelease [142 kB]
Get:3 http://httpredir.debian.org jessie Release.gpg [2373 B]
Get:4 http://httpredir.debian.org jessie Release [148 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [392 kB]
Get:6 http://httpredir.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Get:7 http://httpredir.debian.org jessie/main amd64 Packages [9064 kB]
Fetched 9829 kB in 6s (1453 kB/s)
Reading package lists...
+ apt-get install -y --no-install-recommends ca-certificates wget
Reading package lists...
Building dependency tree...
The following extra packages will be installed:
  libffi6 libgmp10 libgnutls-deb0-28 libhogweed2 libicu52 libidn11 libnettle4
  libp11-kit0 libpsl0 libssl1.0.0 libtasn1-6 openssl
Suggested packages:
  gnutls-bin
The following NEW packages will be installed:
  ca-certificates libffi6 libgmp10 libgnutls-deb0-28 libhogweed2 libicu52
  libidn11 libnettle4 libp11-kit0 libpsl0 libssl1.0.0 libtasn1-6 openssl wget
0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.8 MB of archives.
After this operation, 38.9 MB of additional disk space will be used.
Get:1 http://security.debian.org/ jessie/updates/main libssl1.0.0 amd64 1.0.1t-1+deb8u5 [1048 kB]
Get:2 http://httpredir.debian.org/debian/ jessie/main libgmp10 amd64 2:6.0.0+dfsg-6 [253 kB]
Get:3 http://httpredir.debian.org/debian/ jessie/main libnettle4 amd64 2.7.1-5+deb8u1 [176 kB]
Get:4 http://security.debian.org/ jessie/updates/main openssl amd64 1.0.1t-1+deb8u5 [665 kB]
Get:5 http://httpredir.debian.org/debian/ jessie/main libhogweed2 amd64 2.7.1-5+deb8u1 [126 kB]
Get:6 http://httpredir.debian.org/debian/ jessie/main libffi6 amd64 3.1-2+b2 [20.1 kB]
Get:7 http://httpredir.debian.org/debian/ jessie/main libp11-kit0 amd64 0.20.7-1 [81.2 kB]
Get:8 http://httpredir.debian.org/debian/ jessie/main libtasn1-6 amd64 4.2-3+deb8u2 [49.0 kB]
Get:9 http://httpredir.debian.org/debian/ jessie/main libgnutls-deb0-28 amd64 3.3.8-6+deb8u3 [694 kB]
Get:10 http://httpredir.debian.org/debian/ jessie/main libidn11 amd64 1.29-1+deb8u2 [136 kB]
Get:11 http://httpredir.debian.org/debian/ jessie/main libicu52 amd64 52.1-8+deb8u3 [6784 kB]
Get:12 http://httpredir.debian.org/debian/ jessie/main libpsl0 amd64 0.5.1-1 [41.6 kB]
Get:13 http://httpredir.debian.org/debian/ jessie/main wget amd64 1.16-1+deb8u1 [496 kB]
Get:14 http://httpredir.debian.org/debian/ jessie/main ca-certificates all 20141019+deb8u1 [204 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 10.8 MB in 5s (1941 kB/s)
Selecting previously unselected package libssl1.0.0:amd64.
(Reading database ... 7548 files and directories currently installed.)
Preparing to unpack .../libssl1.0.0_1.0.1t-1+deb8u5_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.1t-1+deb8u5) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a6.0.0+dfsg-6_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.0.0+dfsg-6) ...
Selecting previously unselected package libnettle4:amd64.
Preparing to unpack .../libnettle4_2.7.1-5+deb8u1_amd64.deb ...
Unpacking libnettle4:amd64 (2.7.1-5+deb8u1) ...
Selecting previously unselected package libhogweed2:amd64.
Preparing to unpack .../libhogweed2_2.7.1-5+deb8u1_amd64.deb ...
Unpacking libhogweed2:amd64 (2.7.1-5+deb8u1) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.1-2+b2_amd64.deb ...
Unpacking libffi6:amd64 (3.1-2+b2) ...
Selecting previously unselected package libp11-kit0:amd64.
Preparing to unpack .../libp11-kit0_0.20.7-1_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.20.7-1) ...
Selecting previously unselected package libtasn1-6:amd64.
Preparing to unpack .../libtasn1-6_4.2-3+deb8u2_amd64.deb ...
Unpacking libtasn1-6:amd64 (4.2-3+deb8u2) ...
Selecting previously unselected package libgnutls-deb0-28:amd64.
Preparing to unpack .../libgnutls-deb0-28_3.3.8-6+deb8u3_amd64.deb ...
Unpacking libgnutls-deb0-28:amd64 (3.3.8-6+deb8u3) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../libidn11_1.29-1+deb8u2_amd64.deb ...
Unpacking libidn11:amd64 (1.29-1+deb8u2) ...
Selecting previously unselected package libicu52:amd64.
Preparing to unpack .../libicu52_52.1-8+deb8u3_amd64.deb ...
Unpacking libicu52:amd64 (52.1-8+deb8u3) ...
Selecting previously unselected package libpsl0:amd64.
Preparing to unpack .../libpsl0_0.5.1-1_amd64.deb ...
Unpacking libpsl0:amd64 (0.5.1-1) ...
Selecting previously unselected package wget.
Preparing to unpack .../wget_1.16-1+deb8u1_amd64.deb ...
Unpacking wget (1.16-1+deb8u1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.1t-1+deb8u5_amd64.deb ...
Unpacking openssl (1.0.1t-1+deb8u5) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20141019+deb8u1_all.deb ...
Unpacking ca-certificates (20141019+deb8u1) ...
Setting up libssl1.0.0:amd64 (1.0.1t-1+deb8u5) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libgmp10:amd64 (2:6.0.0+dfsg-6) ...
Setting up libnettle4:amd64 (2.7.1-5+deb8u1) ...
Setting up libhogweed2:amd64 (2.7.1-5+deb8u1) ...
Setting up libffi6:amd64 (3.1-2+b2) ...
Setting up libp11-kit0:amd64 (0.20.7-1) ...
Setting up libtasn1-6:amd64 (4.2-3+deb8u2) ...
Setting up libgnutls-deb0-28:amd64 (3.3.8-6+deb8u3) ...
Setting up libidn11:amd64 (1.29-1+deb8u2) ...
Setting up libicu52:amd64 (52.1-8+deb8u3) ...
Setting up libpsl0:amd64 (0.5.1-1) ...
Setting up wget (1.16-1+deb8u1) ...
Setting up openssl (1.0.1t-1+deb8u5) ...
Setting up ca-certificates (20141019+deb8u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Processing triggers for libc-bin (2.19-18+deb8u6) ...
Processing triggers for ca-certificates (20141019+deb8u1) ...
Updating certificates in /etc/ssl/certs... 174 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
+ rm -rf /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie-updates_InRelease /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie-updates_main_binary-amd64_Packages.gz /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie_Release /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie_Release.gpg /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie_main_binary-amd64_Packages.gz /var/lib/apt/lists/lock /var/lib/apt/lists/partial /var/lib/apt/lists/security.debian.org_dists_jessie_updates_InRelease /var/lib/apt/lists/security.debian.org_dists_jessie_updates_main_binary-amd64_Packages.gz
+ dpkg --print-architecture
+ wget -O /usr/local/bin/gosu https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64
converted 'https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64' (ANSI_X3.4-1968) -> 'https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64' (UTF-8)
--2016-10-19 16:32:09--  https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64
Resolving github.com (github.com)... 192.30.253.113
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-cloud.s3.amazonaws.com/releases/19708981/40d1b00c-8619-11e5-8953-d0122dcf07b9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161019%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161019T163209Z&X-Amz-Expires=300&X-Amz-Signature=4cf8fc845f92948791a7202480784ee00b931ce15d2cb533ac2f108e430e5d06&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgosu-amd64&response-content-type=application%2Foctet-stream [following]
converted 'https://github-cloud.s3.amazonaws.com/releases/19708981/40d1b00c-8619-11e5-8953-d0122dcf07b9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161019%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161019T163209Z&X-Amz-Expires=300&X-Amz-Signature=4cf8fc845f92948791a7202480784ee00b931ce15d2cb533ac2f108e430e5d06&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgosu-amd64&response-content-type=application%2Foctet-stream' (ANSI_X3.4-1968) -> 'https://github-cloud.s3.amazonaws.com/releases/19708981/40d1b00c-8619-11e5-8953-d0122dcf07b9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ/20161019/us-east-1/s3/aws4_request&X-Amz-Date=20161019T163209Z&X-Amz-Expires=300&X-Amz-Signature=4cf8fc845f92948791a7202480784ee00b931ce15d2cb533ac2f108e430e5d06&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=gosu-amd64&response-content-type=application/octet-stream' (UTF-8)
--2016-10-19 16:32:09--  https://github-cloud.s3.amazonaws.com/releases/19708981/40d1b00c-8619-11e5-8953-d0122dcf07b9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ/20161019/us-east-1/s3/aws4_request&X-Amz-Date=20161019T163209Z&X-Amz-Expires=300&X-Amz-Signature=4cf8fc845f92948791a7202480784ee00b931ce15d2cb533ac2f108e430e5d06&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment;%20filename=gosu-amd64&response-content-type=application/octet-stream
Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 54.231.115.35
Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.115.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2698808 (2.6M) [application/octet-stream]
Saving to: '/usr/local/bin/gosu'

     0K .......... .......... .......... .......... ..........  1%  483K 5s
    50K .......... .......... .......... .......... ..........  3%  852K 4s
   100K .......... .......... .......... .......... ..........  5%  957K 4s
   150K .......... .......... .......... .......... ..........  7% 2.03M 3s
   200K .......... .......... .......... .......... ..........  9% 1.75M 3s
   250K .......... .......... .......... .......... .......... 11% 2.62M 2s
   300K .......... .......... .......... .......... .......... 13% 2.52M 2s
   350K .......... .......... .......... .......... .......... 15% 2.11M 2s
   400K .......... .......... .......... .......... .......... 17% 2.33M 2s
   450K .......... .......... .......... .......... .......... 18% 4.36M 2s
   500K .......... .......... .......... .......... .......... 20% 2.90M 1s
   550K .......... .......... .......... .......... .......... 22% 3.92M 1s
   600K .......... .......... .......... .......... .......... 24% 3.58M 1s
   650K .......... .......... .......... .......... .......... 26% 3.44M 1s
   700K .......... .......... .......... .......... .......... 28% 3.79M 1s
   750K .......... .......... .......... .......... .......... 30% 3.77M 1s
   800K .......... .......... .......... .......... .......... 32% 4.02M 1s
   850K .......... .......... .......... .......... .......... 34% 7.10M 1s
   900K .......... .......... .......... .......... .......... 36% 4.00M 1s
   950K .......... .......... .......... .......... .......... 37% 3.69M 1s
  1000K .......... .......... .......... .......... .......... 39% 4.78M 1s
  1050K .......... .......... .......... .......... .......... 41% 3.65M 1s
  1100K .......... .......... .......... .......... .......... 43% 4.16M 1s
  1150K .......... .......... .......... .......... .......... 45% 3.95M 1s
  1200K .......... .......... .......... .......... .......... 47% 4.80M 1s
  1250K .......... .......... .......... .......... .......... 49% 4.05M 1s
  1300K .......... .......... .......... .......... .......... 51% 3.89M 1s
  1350K .......... .......... .......... .......... .......... 53% 4.00M 1s
  1400K .......... .......... .......... .......... .......... 55% 4.61M 0s
  1450K .......... .......... .......... .......... .......... 56% 3.62M 0s
  1500K .......... .......... .......... .......... .......... 58% 3.47M 0s
  1550K .......... .......... .......... .......... .......... 60% 3.69M 0s
  1600K .......... .......... .......... .......... .......... 62% 3.98M 0s
  1650K .......... .......... .......... .......... .......... 64% 4.83M 0s
  1700K .......... .......... .......... .......... .......... 66% 5.69M 0s
  1750K .......... .......... .......... .......... .......... 68% 4.14M 0s
  1800K .......... .......... .......... .......... .......... 70% 4.81M 0s
  1850K .......... .......... .......... .......... .......... 72% 3.93M 0s
  1900K .......... .......... .......... .......... .......... 73% 3.50M 0s
  1950K .......... .......... .......... .......... .......... 75% 3.82M 0s
  2000K .......... .......... .......... .......... .......... 77% 4.66M 0s
  2050K .......... .......... .......... .......... .......... 79% 3.99M 0s
  2100K .......... .......... .......... .......... .......... 81% 4.28M 0s
  2150K .......... .......... .......... .......... .......... 83% 4.38M 0s
  2200K .......... .......... .......... .......... .......... 85% 5.09M 0s
  2250K .......... .......... .......... .......... .......... 87% 4.54M 0s
  2300K .......... .......... .......... .......... .......... 89% 3.07M 0s
  2350K .......... .......... .......... .......... .......... 91% 3.81M 0s
  2400K .......... .......... .......... .......... .......... 92% 4.78M 0s
  2450K .......... .......... .......... .......... .......... 94% 4.31M 0s
  2500K .......... .......... .......... .......... .......... 96% 4.25M 0s
  2550K .......... .......... .......... .......... .......... 98% 3.40M 0s
  2600K .......... .......... .......... .....                100% 6.17M=0.9s

2016-10-19 16:32:11 (2.95 MB/s) - '/usr/local/bin/gosu' saved [2698808/2698808]

+ dpkg --print-architecture
+ wget -O /usr/local/bin/gosu.asc https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64.asc
converted 'https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64.asc' (ANSI_X3.4-1968) -> 'https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64.asc' (UTF-8)
--2016-10-19 16:32:11--  https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64.asc
Resolving github.com (github.com)... 192.30.253.113
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-cloud.s3.amazonaws.com/releases/19708981/40e5b35e-8619-11e5-98cb-8377dd5f2aac.asc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161019%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161019T163211Z&X-Amz-Expires=300&X-Amz-Signature=fa4d7337ab76275899de701a24a98157a2ede8fddbd089592e5562ca3ab96b9a&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgosu-amd64.asc&response-content-type=application%2Foctet-stream [following]
converted 'https://github-cloud.s3.amazonaws.com/releases/19708981/40e5b35e-8619-11e5-98cb-8377dd5f2aac.asc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161019%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161019T163211Z&X-Amz-Expires=300&X-Amz-Signature=fa4d7337ab76275899de701a24a98157a2ede8fddbd089592e5562ca3ab96b9a&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgosu-amd64.asc&response-content-type=application%2Foctet-stream' (ANSI_X3.4-1968) -> 'https://github-cloud.s3.amazonaws.com/releases/19708981/40e5b35e-8619-11e5-98cb-8377dd5f2aac.asc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ/20161019/us-east-1/s3/aws4_request&X-Amz-Date=20161019T163211Z&X-Amz-Expires=300&X-Amz-Signature=fa4d7337ab76275899de701a24a98157a2ede8fddbd089592e5562ca3ab96b9a&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=gosu-amd64.asc&response-content-type=application/octet-stream' (UTF-8)
--2016-10-19 16:32:11--  https://github-cloud.s3.amazonaws.com/releases/19708981/40e5b35e-8619-11e5-98cb-8377dd5f2aac.asc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ/20161019/us-east-1/s3/aws4_request&X-Amz-Date=20161019T163211Z&X-Amz-Expires=300&X-Amz-Signature=fa4d7337ab76275899de701a24a98157a2ede8fddbd089592e5562ca3ab96b9a&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment;%20filename=gosu-amd64.asc&response-content-type=application/octet-stream
Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 54.231.115.35
Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.115.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 543 [application/octet-stream]
Saving to: '/usr/local/bin/gosu.asc'

     0K                                                       100% 15.6K=0.03s

2016-10-19 16:32:11 (15.6 KB/s) - '/usr/local/bin/gosu.asc' saved [543/543]

+ mktemp -d
+ export GNUPGHOME=/tmp/tmp.TBXNxrNhDd
+ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
gpg: keyring `/tmp/tmp.TBXNxrNhDd/secring.gpg' created
gpg: keyring `/tmp/tmp.TBXNxrNhDd/pubring.gpg' created
gpg: requesting key BF357DD4 from hkp server ha.pool.sks-keyservers.net
gpg: /tmp/tmp.TBXNxrNhDd/trustdb.gpg: trustdb created
gpg: key BF357DD4: public key "Tianon Gravi <[email protected]>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu
gpg: Signature made Sun Nov  8 21:04:08 2015 UTC using RSA key ID BF357DD4
gpg: Good signature from "Tianon Gravi <[email protected]>"
gpg:                 aka "Tianon Gravi <[email protected]>"
gpg:                 aka "Tianon Gravi <[email protected]>"
gpg:                 aka "Andrew Page (tianon) <[email protected]>"
gpg:                 aka "Andrew Page (tianon) <[email protected]>"
gpg:                 aka "Andrew Page (Tianon Gravi) <[email protected]>"
gpg:                 aka "Tianon Gravi (Andrew Page) <[email protected]>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4
+ rm -r /tmp/tmp.TBXNxrNhDd /usr/local/bin/gosu.asc
+ chmod +x /usr/local/bin/gosu
+ gosu nobody true
+ apt-get purge -y --auto-remove ca-certificates wget
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  ca-certificates* libffi6* libgmp10* libgnutls-deb0-28* libhogweed2*
  libicu52* libidn11* libnettle4* libp11-kit0* libpsl0* libssl1.0.0*
  libtasn1-6* openssl* wget*
0 upgraded, 0 newly installed, 14 to remove and 0 not upgraded.
After this operation, 38.9 MB disk space will be freed.
(Reading database ... 8023 files and directories currently installed.)
Removing ca-certificates (20141019+deb8u1) ...
Removing dangling symlinks from /etc/ssl/certs... done.
Purging configuration files for ca-certificates (20141019+deb8u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Removing dangling symlinks from /etc/ssl/certs... done.
Removing wget (1.16-1+deb8u1) ...
Purging configuration files for wget (1.16-1+deb8u1) ...
Removing libgnutls-deb0-28:amd64 (3.3.8-6+deb8u3) ...
Purging configuration files for libgnutls-deb0-28:amd64 (3.3.8-6+deb8u3) ...
Removing libp11-kit0:amd64 (0.20.7-1) ...
Purging configuration files for libp11-kit0:amd64 (0.20.7-1) ...
Removing libffi6:amd64 (3.1-2+b2) ...
Purging configuration files for libffi6:amd64 (3.1-2+b2) ...
Removing libhogweed2:amd64 (2.7.1-5+deb8u1) ...
Purging configuration files for libhogweed2:amd64 (2.7.1-5+deb8u1) ...
Removing libgmp10:amd64 (2:6.0.0+dfsg-6) ...
Purging configuration files for libgmp10:amd64 (2:6.0.0+dfsg-6) ...
Removing libpsl0:amd64 (0.5.1-1) ...
Purging configuration files for libpsl0:amd64 (0.5.1-1) ...
Removing libicu52:amd64 (52.1-8+deb8u3) ...
Purging configuration files for libicu52:amd64 (52.1-8+deb8u3) ...
Removing libidn11:amd64 (1.29-1+deb8u2) ...
Purging configuration files for libidn11:amd64 (1.29-1+deb8u2) ...
Removing libnettle4:amd64 (2.7.1-5+deb8u1) ...
Purging configuration files for libnettle4:amd64 (2.7.1-5+deb8u1) ...
Removing openssl (1.0.1t-1+deb8u5) ...
Purging configuration files for openssl (1.0.1t-1+deb8u5) ...
Removing libssl1.0.0:amd64 (1.0.1t-1+deb8u5) ...
Purging configuration files for libssl1.0.0:amd64 (1.0.1t-1+deb8u5) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Removing libtasn1-6:amd64 (4.2-3+deb8u2) ...
Purging configuration files for libtasn1-6:amd64 (4.2-3+deb8u2) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
 ---> a39f0377e50e
Removing intermediate container 26a43d0a7515
Step 5 : RUN mkdir /docker-entrypoint-initdb.d
 ---> Running in 2003a52b0777
 ---> 1c93ee5c8698
Removing intermediate container 2003a52b0777
Step 6 : RUN apt-get update && apt-get install -y --no-install-recommends       apt-transport-https ca-certificates         pwgen   && rm -rf /var/lib/apt/lists/*
 ---> Running in c9fc930f59fb
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://httpredir.debian.org jessie InRelease
Get:2 http://httpredir.debian.org jessie-updates InRelease [142 kB]
Get:3 http://httpredir.debian.org jessie Release.gpg [2373 B]
Get:4 http://httpredir.debian.org jessie Release [148 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [392 kB]
Get:6 http://httpredir.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Get:7 http://httpredir.debian.org jessie/main amd64 Packages [9064 kB]
Fetched 9829 kB in 6s (1506 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libcurl3-gnutls libffi6 libgmp10 libgnutls-deb0-28 libgssapi-krb5-2
  libhogweed2 libidn11 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0
  libldap-2.4-2 libnettle4 libp11-kit0 librtmp1 libsasl2-2 libsasl2-modules-db
  libssh2-1 libssl1.0.0 libtasn1-6 openssl
Suggested packages:
  gnutls-bin krb5-doc krb5-user
Recommended packages:
  krb5-locales libsasl2-modules
The following NEW packages will be installed:
  apt-transport-https ca-certificates libcurl3-gnutls libffi6 libgmp10
  libgnutls-deb0-28 libgssapi-krb5-2 libhogweed2 libidn11 libk5crypto3
  libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libnettle4 libp11-kit0
  librtmp1 libsasl2-2 libsasl2-modules-db libssh2-1 libssl1.0.0 libtasn1-6
  openssl pwgen
0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
Need to get 5075 kB of archives.
After this operation, 12.5 MB of additional disk space will be used.
Get:1 http://security.debian.org/ jessie/updates/main libssl1.0.0 amd64 1.0.1t-1+deb8u5 [1048 kB]
Get:2 http://httpredir.debian.org/debian/ jessie/main libgmp10 amd64 2:6.0.0+dfsg-6 [253 kB]
Get:3 http://security.debian.org/ jessie/updates/main openssl amd64 1.0.1t-1+deb8u5 [665 kB]
Get:4 http://httpredir.debian.org/debian/ jessie/main libnettle4 amd64 2.7.1-5+deb8u1 [176 kB]
Get:5 http://httpredir.debian.org/debian/ jessie/main libhogweed2 amd64 2.7.1-5+deb8u1 [126 kB]
Get:6 http://httpredir.debian.org/debian/ jessie/main libffi6 amd64 3.1-2+b2 [20.1 kB]
Get:7 http://httpredir.debian.org/debian/ jessie/main libp11-kit0 amd64 0.20.7-1 [81.2 kB]
Get:8 http://httpredir.debian.org/debian/ jessie/main libtasn1-6 amd64 4.2-3+deb8u2 [49.0 kB]
Get:9 http://httpredir.debian.org/debian/ jessie/main libgnutls-deb0-28 amd64 3.3.8-6+deb8u3 [694 kB]
Get:10 http://httpredir.debian.org/debian/ jessie/main libkeyutils1 amd64 1.5.9-5+b1 [12.0 kB]
Get:11 http://httpredir.debian.org/debian/ jessie/main libkrb5support0 amd64 1.12.1+dfsg-19+deb8u2 [59.1 kB]
Get:12 http://httpredir.debian.org/debian/ jessie/main libk5crypto3 amd64 1.12.1+dfsg-19+deb8u2 [115 kB]
Get:13 http://httpredir.debian.org/debian/ jessie/main libkrb5-3 amd64 1.12.1+dfsg-19+deb8u2 [303 kB]
Get:14 http://httpredir.debian.org/debian/ jessie/main libgssapi-krb5-2 amd64 1.12.1+dfsg-19+deb8u2 [152 kB]
Get:15 http://httpredir.debian.org/debian/ jessie/main libidn11 amd64 1.29-1+deb8u2 [136 kB]
Get:16 http://httpredir.debian.org/debian/ jessie/main libsasl2-modules-db amd64 2.1.26.dfsg1-13+deb8u1 [67.1 kB]
Get:17 http://httpredir.debian.org/debian/ jessie/main libsasl2-2 amd64 2.1.26.dfsg1-13+deb8u1 [105 kB]
Get:18 http://httpredir.debian.org/debian/ jessie/main libldap-2.4-2 amd64 2.4.40+dfsg-1+deb8u2 [218 kB]
Get:19 http://httpredir.debian.org/debian/ jessie/main librtmp1 amd64 2.4+20150115.gita107cef-1 [59.8 kB]
Get:20 http://httpredir.debian.org/debian/ jessie/main libssh2-1 amd64 1.4.3-4.1+deb8u1 [125 kB]
Get:21 http://httpredir.debian.org/debian/ jessie/main libcurl3-gnutls amd64 7.38.0-4+deb8u4 [251 kB]
Get:22 http://httpredir.debian.org/debian/ jessie/main apt-transport-https amd64 1.0.9.8.3 [138 kB]
Get:23 http://httpredir.debian.org/debian/ jessie/main ca-certificates all 20141019+deb8u1 [204 kB]
Get:24 http://httpredir.debian.org/debian/ jessie/main pwgen amd64 2.07-1 [18.1 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 5075 kB in 3s (1432 kB/s)
Selecting previously unselected package libssl1.0.0:amd64.
(Reading database ... 7548 files and directories currently installed.)
Preparing to unpack .../libssl1.0.0_1.0.1t-1+deb8u5_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.1t-1+deb8u5) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a6.0.0+dfsg-6_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.0.0+dfsg-6) ...
Selecting previously unselected package libnettle4:amd64.
Preparing to unpack .../libnettle4_2.7.1-5+deb8u1_amd64.deb ...
Unpacking libnettle4:amd64 (2.7.1-5+deb8u1) ...
Selecting previously unselected package libhogweed2:amd64.
Preparing to unpack .../libhogweed2_2.7.1-5+deb8u1_amd64.deb ...
Unpacking libhogweed2:amd64 (2.7.1-5+deb8u1) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.1-2+b2_amd64.deb ...
Unpacking libffi6:amd64 (3.1-2+b2) ...
Selecting previously unselected package libp11-kit0:amd64.
Preparing to unpack .../libp11-kit0_0.20.7-1_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.20.7-1) ...
Selecting previously unselected package libtasn1-6:amd64.
Preparing to unpack .../libtasn1-6_4.2-3+deb8u2_amd64.deb ...
Unpacking libtasn1-6:amd64 (4.2-3+deb8u2) ...
Selecting previously unselected package libgnutls-deb0-28:amd64.
Preparing to unpack .../libgnutls-deb0-28_3.3.8-6+deb8u3_amd64.deb ...
Unpacking libgnutls-deb0-28:amd64 (3.3.8-6+deb8u3) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../libkeyutils1_1.5.9-5+b1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-5+b1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../libkrb5support0_1.12.1+dfsg-19+deb8u2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.12.1+dfsg-19+deb8u2) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../libk5crypto3_1.12.1+dfsg-19+deb8u2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.12.1+dfsg-19+deb8u2) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../libkrb5-3_1.12.1+dfsg-19+deb8u2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.12.1+dfsg-19+deb8u2) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../libgssapi-krb5-2_1.12.1+dfsg-19+deb8u2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.12.1+dfsg-19+deb8u2) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../libidn11_1.29-1+deb8u2_amd64.deb ...
Unpacking libidn11:amd64 (1.29-1+deb8u2) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../libsasl2-modules-db_2.1.26.dfsg1-13+deb8u1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.26.dfsg1-13+deb8u1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../libsasl2-2_2.1.26.dfsg1-13+deb8u1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.26.dfsg1-13+deb8u1) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../libldap-2.4-2_2.4.40+dfsg-1+deb8u2_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.40+dfsg-1+deb8u2) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../librtmp1_2.4+20150115.gita107cef-1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20150115.gita107cef-1) ...
Selecting previously unselected package libssh2-1:amd64.
Preparing to unpack .../libssh2-1_1.4.3-4.1+deb8u1_amd64.deb ...
Unpacking libssh2-1:amd64 (1.4.3-4.1+deb8u1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../libcurl3-gnutls_7.38.0-4+deb8u4_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.38.0-4+deb8u4) ...
Selecting previously unselected package apt-transport-https.
Preparing to unpack .../apt-transport-https_1.0.9.8.3_amd64.deb ...
Unpacking apt-transport-https (1.0.9.8.3) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.1t-1+deb8u5_amd64.deb ...
Unpacking openssl (1.0.1t-1+deb8u5) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20141019+deb8u1_all.deb ...
Unpacking ca-certificates (20141019+deb8u1) ...
Selecting previously unselected package pwgen.
Preparing to unpack .../pwgen_2.07-1_amd64.deb ...
Unpacking pwgen (2.07-1) ...
Setting up libssl1.0.0:amd64 (1.0.1t-1+deb8u5) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libgmp10:amd64 (2:6.0.0+dfsg-6) ...
Setting up libnettle4:amd64 (2.7.1-5+deb8u1) ...
Setting up libhogweed2:amd64 (2.7.1-5+deb8u1) ...
Setting up libffi6:amd64 (3.1-2+b2) ...
Setting up libp11-kit0:amd64 (0.20.7-1) ...
Setting up libtasn1-6:amd64 (4.2-3+deb8u2) ...
Setting up libgnutls-deb0-28:amd64 (3.3.8-6+deb8u3) ...
Setting up libkeyutils1:amd64 (1.5.9-5+b1) ...
Setting up libkrb5support0:amd64 (1.12.1+dfsg-19+deb8u2) ...
Setting up libk5crypto3:amd64 (1.12.1+dfsg-19+deb8u2) ...
Setting up libkrb5-3:amd64 (1.12.1+dfsg-19+deb8u2) ...
Setting up libgssapi-krb5-2:amd64 (1.12.1+dfsg-19+deb8u2) ...
Setting up libidn11:amd64 (1.29-1+deb8u2) ...
Setting up libsasl2-modules-db:amd64 (2.1.26.dfsg1-13+deb8u1) ...
Setting up libsasl2-2:amd64 (2.1.26.dfsg1-13+deb8u1) ...
Setting up libldap-2.4-2:amd64 (2.4.40+dfsg-1+deb8u2) ...
Setting up librtmp1:amd64 (2.4+20150115.gita107cef-1) ...
Setting up libssh2-1:amd64 (1.4.3-4.1+deb8u1) ...
Setting up libcurl3-gnutls:amd64 (7.38.0-4+deb8u4) ...
Setting up apt-transport-https (1.0.9.8.3) ...
Setting up openssl (1.0.1t-1+deb8u5) ...
Setting up ca-certificates (20141019+deb8u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up pwgen (2.07-1) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
Processing triggers for ca-certificates (20141019+deb8u1) ...
Updating certificates in /etc/ssl/certs... 174 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
 ---> 3d502ce3af20
Removing intermediate container c9fc930f59fb
Step 7 : RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 199369E5404BD5FC7D2FE43BCBCB082A1BB943DB    && apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A
 ---> Running in f18580cbe4cc
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.qwzbsh66r5 --no-auto-check-trustdb --trust-model always --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 199369E5404BD5FC7D2FE43BCBCB082A1BB943DB
gpg: requesting key 1BB943DB from hkp server ha.pool.sks-keyservers.net
gpg: key 1BB943DB: public key "MariaDB Package Signing Key <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.Ezk7hQ8eq3 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A
gpg: requesting key CD2EFD2A from hkp server ha.pool.sks-keyservers.net
gpg: key CD2EFD2A: public key "Percona MySQL Development Team <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
 ---> b2e11565ecb7
Removing intermediate container f18580cbe4cc
Step 8 : RUN echo "deb https://repo.percona.com/apt jessie main" > /etc/apt/sources.list.d/percona.list     && {        echo 'Package: *';      echo 'Pin: release o=Percona Development Team';     echo 'Pin-Priority: 998';   } > /etc/apt/preferences.d/percona
 ---> Running in 1ba5b2cfd4d5
 ---> beb82e10c72f
Removing intermediate container 1ba5b2cfd4d5
Step 9 : ENV MARIADB_MAJOR 10.1
 ---> Running in b9f9c6e5e429
 ---> 8a4e4f330c32
Removing intermediate container b9f9c6e5e429
Step 10 : ENV MARIADB_VERSION 10.1.18+maria-1~jessie
 ---> Running in 7d7b288f614d
 ---> 57210f64c41c
Removing intermediate container 7d7b288f614d
Step 11 : RUN echo "deb http://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/debian jessie main" > /etc/apt/sources.list.d/mariadb.list    && {        echo 'Package: *';      echo 'Pin: release o=MariaDB';      echo 'Pin-Priority: 999';   } > /etc/apt/preferences.d/mariadb
 ---> Running in a43fe8c10c8c
 ---> 0914123d83a4
Removing intermediate container a43fe8c10c8c
Step 12 : RUN {         echo mariadb-server-$MARIADB_MAJOR mysql-server/root_password password 'unused';        echo mariadb-server-$MARIADB_MAJOR mysql-server/root_password_again password 'unused';} | debconf-set-selections    && apt-get update   && apt-get install -y       mariadb-server=$MARIADB_VERSION         percona-xtrabackup      socat   && rm -rf /var/lib/apt/lists/*  && sed -ri 's/^user\s/#&/' /etc/mysql/my.cnf /etc/mysql/conf.d/*    && rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql /var/run/mysqld     && chown -R mysql:mysql /var/lib/mysql /var/run/mysqld  && chmod 777 /var/run/mysqld
 ---> Running in a7d83c88714f
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:2 http://ftp.osuosl.org jessie InRelease [2488 B]
Get:3 https://repo.percona.com jessie InRelease [15.9 kB]
Ign http://httpredir.debian.org jessie InRelease
Get:4 http://httpredir.debian.org jessie-updates InRelease [142 kB]
Get:5 http://httpredir.debian.org jessie Release.gpg [2373 B]
Get:6 http://httpredir.debian.org jessie Release [148 kB]
Get:7 http://security.debian.org jessie/updates/main amd64 Packages [392 kB]
Get:8 http://ftp.osuosl.org jessie/main amd64 Packages [5580 B]
Ign https://repo.percona.com jessie InRelease
Get:9 https://repo.percona.com jessie/main amd64 Packages [20.2 kB]
Get:10 http://httpredir.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Get:11 http://httpredir.debian.org jessie/main amd64 Packages [9064 kB]
Fetched 9874 kB in 7s (1406 kB/s)
Reading package lists...
W: GPG error: https://repo.percona.com jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9334A25F8507EFA5
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  galera-3 gawk init-system-helpers iproute libaio1 libalgorithm-c3-perl
  libarchive-extract-perl libcgi-fast-perl libcgi-pm-perl libclass-c3-perl
  libclass-c3-xs-perl libcpan-meta-perl libcurl3 libdata-optlist-perl
  libdata-section-perl libdbd-mysql-perl libdbi-perl libev4 libfcgi-perl
  libgdbm3 libhtml-template-perl libjemalloc1 liblog-message-perl
  liblog-message-simple-perl libmariadbclient18 libmodule-build-perl
  libmodule-pluggable-perl libmodule-signature-perl libmpfr4
  libmro-compat-perl libmysqlclient18 libpackage-constants-perl
  libparams-util-perl libperl4-corelibs-perl libpod-latex-perl
  libpod-readme-perl libpopt0 libreadline5 libregexp-common-perl libsigsegv2
  libsoftware-license-perl libsub-exporter-perl libsub-install-perl
  libterm-ui-perl libtext-soundex-perl libtext-template-perl libwrap0 lsof
  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common
  mariadb-server-10.1 mariadb-server-core-10.1 mysql-common perl perl-modules
  psmisc rename rsync tcpd
Suggested packages:
  gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl
  libsql-statement-perl libipc-sharedcache-perl libterm-readkey-perl mailx
  mariadb-test netcat-openbsd tinyca perl-doc libterm-readline-gnu-perl
  libterm-readline-perl-perl make libb-lint-perl libcpanplus-dist-build-perl
  libcpanplus-perl libfile-checktree-perl libobject-accessor-perl
  openssh-client openssh-server
Recommended packages:
  libarchive-tar-perl
The following NEW packages will be installed:
  galera-3 gawk init-system-helpers iproute libaio1 libalgorithm-c3-perl
  libarchive-extract-perl libcgi-fast-perl libcgi-pm-perl libclass-c3-perl
  libclass-c3-xs-perl libcpan-meta-perl libcurl3 libdata-optlist-perl
  libdata-section-perl libdbd-mysql-perl libdbi-perl libev4 libfcgi-perl
  libgdbm3 libhtml-template-perl libjemalloc1 liblog-message-perl
  liblog-message-simple-perl libmariadbclient18 libmodule-build-perl
  libmodule-pluggable-perl libmodule-signature-perl libmpfr4
  libmro-compat-perl libmysqlclient18 libpackage-constants-perl
  libparams-util-perl libperl4-corelibs-perl libpod-latex-perl
  libpod-readme-perl libpopt0 libreadline5 libregexp-common-perl libsigsegv2
  libsoftware-license-perl libsub-exporter-perl libsub-install-perl
  libterm-ui-perl libtext-soundex-perl libtext-template-perl libwrap0 lsof
  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server
  mariadb-server-10.1 mariadb-server-core-10.1 mysql-common percona-xtrabackup
  perl perl-modules psmisc rename rsync socat tcpd
0 upgraded, 63 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.9 MB of archives.
After this operation, 250 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  percona-xtrabackup
E: There are problems and -y was used without --force-yes
The command '/bin/sh -c {       echo mariadb-server-$MARIADB_MAJOR mysql-server/root_password password 'unused';        echo mariadb-server-$MARIADB_MAJOR mysql-server/root_password_again password 'unused';  } | debconf-set-selections  && apt-get update   && apt-get install -y       mariadb-server=$MARIADB_VERSION         percona-xtrabackup      socat   && rm -rf /var/lib/apt/lists/*  && sed -ri 's/^user\s/#&/' /etc/mysql/my.cnf /etc/mysql/conf.d/*    && rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql /var/run/mysqld     && chown -R mysql:mysql /var/lib/mysql /var/run/mysqld&& chmod 777 /var/run/mysqld' returned a non-zero code: 100

Complains about being started as root

When starting the container, it is being stoped, since mariadb is started as "root", which mariadb doesn't allow:

inished mysql_install_db
150415 9:13:44 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

150415 9:13:44 [ERROR] Aborting

150415 9:13:44 [Note] mysqld: Shutdown complete

Can't login as root

Hi,
I tried to get your container to work but I can't login as root as I try to create several databases and
users.

docker-compose.yml

mariadb:
  image: mariadb:latest
  restart: always
  mem_limit: 128m
  container_name: mariadb
  environment:
    MYSQL_ROOT_PASSWORD: xxx
    TERM: xterm
  volumes:
    - ./volumes/var/lib/mysql:/var/lib/mysql
    - ./volumes/etc/mysql/conf.d:/etc/mysql/conf.d

  # --skip-name-resolve
  # avoids: ""[Warning] IP address '172.17.0.60' could not be resolved: Name or service not known""
  command: mysqld --skip-name-resolve

Results:

$ docker-compose up -d
Creating mariadb
$ docker run -it --link mariadb:mysql --rm mariadb sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
ERROR 1045 (28000): Access denied for user 'root'@'172.17.0.3' (using password: YES)

I also tried a minimal run with an other error:

$ docker pull mariadb
Using default tag: latest
latest: Pulling from library/mariadb
8b87079b7a06: Pull complete
a3ed95caeb02: Pull complete
8b31a672b2e4: Pull complete
f959b6b404b6: Pull complete
9474f626fd77: Pull complete
8b9beff43c30: Pull complete
bac5b85f382e: Pull complete
b5afe408f722: Pull complete
336a899336bf: Pull complete
1f35fa63a903: Pull complete
4c9af553aed4: Pull complete
65beec678ddf: Pull complete
c9b983c9f92d: Pull complete
Digest: sha256:a609827ea58e9b719a1265694d8eee7baa5d556b78e53073d0199081b6884d1f
Status: Downloaded newer image for mariadb:latest
$ docker run --name some-mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb
ea0a9cc7a3adde1d06af772fa5e08b4566e0f3e620c4df5e0aaeaeeed8e85b0e
$ docker run -it --link some-mariadb:mysql --rm mariadb sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
ERROR 2003 (HY000): Can't connect to MySQL server on '172.17.0.2' (111 "Connection refused")

Any suggestions?

[Question] Data Directory Mount?

Can I mount a Host Directory Path the the Data Directory path for the MariaDB Database? That Way I can Upgrade or Replace the MariaDB Container at will with out loosing database data?

Thanks,
-Bill

pwgen missing in 10.1.10?

Hi, pulling mariadb:10.1.10 and running it I can't find pwgen anywhere...it is used in the docker-entrypoint.sh

I get this running the image:

mydb      | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
mydb      | /docker-entrypoint.sh: line 50: pwgen: command not found
mydb exited with code 0

Seems it was introduced by 5d17b85 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.