docker / libcompose

*Unmaintained/Deprecated* An experimental go library providing Compose-like functionality
https://godoc.org/github.com/docker/libcompose
Apache License 2.0
585 stars 191 forks source link

libcompose fails as `getaddrinfo failed` #298

Open surajssd opened 8 years ago

surajssd commented 8 years ago

Docker Compose works but libcompose fails in all apps as getaddrinfo failed.

I am using following docker-compose file:

$ cat docker-compose.yml 
version: "2"

services:
  mariadb:
    image: centos/mariadb
    ports:
      - "$DB_PORT"
    environment:
      MYSQL_ROOT_PASSWORD: $ROOT_PASS
      MYSQL_DATABASE: $DB_NAME
      MYSQL_PASSWORD: $DB_PASS
      MYSQL_USER: $DB_USER

  etherpad:
    image: centos/etherpad
    ports:
      - "80:9001"
    depends_on:
      - mariadb
    environment:
      DB_HOST: $DB_HOST
      DB_DBID: $DB_NAME
      DB_PASS: $DB_PASS
      DB_PORT: $DB_PORT
      DB_USER: $DB_USER

and envs file

$ cat envs 
DB_HOST=mariadb
ROOT_PASS=etherpad
DB_NAME=etherpad
DB_PASS=etherpad
DB_USER=etherpad
DB_PORT=3306

libcompose version

$ ./libcompose version
WARN[0000] Note: This is an experimental alternate implementation of the Compose CLI (https://github.com/docker/compose) 
Version:      0.3.0-dev (HEAD)
Go version:   go1.6.2
Built:        
OS/Arch:      linux/amd64
DEPRECATED Action signature.  Must be `cli.ActionFunc`.  This is an error in the application.  Please contact the distributor of this application if this is not you.  See https://github.com/codegangsta/cli/blob/master/CHANGELOG.md#deprecated-cli-app-action-signature

Using libcompose

$ export $(cat envs)
$ ./libcompose up
WARN[0000] Note: This is an experimental alternate implementation of the Compose CLI (https://github.com/docker/compose) 
INFO[0000] Project [etherpad]: Starting project         
INFO[0000] [0/2] [mariadb]: Starting                    
INFO[0000] [1/2] [mariadb]: Started                     
INFO[0000] [1/2] [etherpad]: Starting                   
INFO[0002] [2/2] [etherpad]: Started                    
INFO[0002] Project [etherpad]: Project started          
etherpad_1 | + '[' '!' -z '' ']'
etherpad_1 | + sed -i s/DB_HOST/mariadb/ settings.json
etherpad_1 | + sed -i s/DB_DBID/etherpad/ settings.json
etherpad_1 | + sed -i s/DB_PASS/etherpad/ settings.json
etherpad_1 | + sed -i s/DB_PORT/3306/ settings.json
etherpad_1 | + sed -i s/DB_USER/etherpad/ settings.json
etherpad_1 | + ./bin/run.sh
mariadb_1  | Running mysql_install_db ...
mariadb_1  | Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
mariadb_1  | 160606 14:28:21 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 31 ...
etherpad_1 | Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
mariadb_1  | OK
mariadb_1  | Filling help tables...
mariadb_1  | 160606 14:28:23 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 39 ...
mariadb_1  | OK
mariadb_1  | 
mariadb_1  | To start mysqld at boot time you have to copy
mariadb_1  | support-files/mysql.server to the right place for your system
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 fde97cc8c88a 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  | You can start the MariaDB daemon with:
mariadb_1  | cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
mariadb_1  | 
mariadb_1  | You can test the MariaDB daemon with mysql-test-run.pl
mariadb_1  | cd '/usr/mysql-test' ; perl mysql-test-run.pl
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 sales@mariadb.com.
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  | Finished mysql_install_db
mariadb_1  | 160606 14:28:23 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
mariadb_1  | 160606 14:28:23 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
etherpad_1 | npm WARN deprecated ueberDB@0.2.15: Package
etherpad_1 | npm WARN deprecated graceful-fs@3.0.6: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
etherpad_1 | npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
etherpad_1 | npm WARN deprecated lodash@1.3.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
etherpad_1 | npm WARN deprecated native-or-bluebird@1.1.2: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
etherpad_1 | npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
etherpad_1 | 
etherpad_1 | > ws@0.5.0 install /var/lib/etherpad/src/node_modules/socket.io/node_modules/engine.io/node_modules/ws
etherpad_1 | > (node-gyp rebuild 2> builderror.log) || (exit 0)
etherpad_1 | 
etherpad_1 | 
etherpad_1 | > ws@0.4.31 install /var/lib/etherpad/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
etherpad_1 | > (node-gyp rebuild 2> builderror.log) || (exit 0)
etherpad_1 | 
etherpad_1 | npm ERR! registry error parsing json
etherpad_1 | npm ERR! registry error parsing json
etherpad_1 | channels@0.0.4 node_modules/channels
etherpad_1 | 
etherpad_1 | slide@1.1.6 node_modules/slide
etherpad_1 | 
etherpad_1 | security@1.0.0 node_modules/security
etherpad_1 | 
etherpad_1 | async-stacktrace@0.0.2 node_modules/async-stacktrace
etherpad_1 | 
etherpad_1 | graceful-fs@3.0.6 node_modules/graceful-fs
etherpad_1 | 
etherpad_1 | tinycon@0.0.1 node_modules/tinycon
etherpad_1 | 
etherpad_1 | formidable@1.0.17 node_modules/formidable
etherpad_1 | 
etherpad_1 | async@0.9.0 node_modules/async
etherpad_1 | 
etherpad_1 | underscore@1.8.3 node_modules/underscore
etherpad_1 | 
etherpad_1 | etherpad-require-kernel@1.0.9 node_modules/etherpad-require-kernel
etherpad_1 | 
etherpad_1 | languages4translatewiki@0.1.3 node_modules/languages4translatewiki
etherpad_1 | 
etherpad_1 | unorm@1.3.3 node_modules/unorm
etherpad_1 | 
etherpad_1 | semver@4.3.3 node_modules/semver
etherpad_1 | 
etherpad_1 | resolve@1.1.6 node_modules/resolve
etherpad_1 | 
etherpad_1 | etherpad-yajsml@0.0.2 node_modules/etherpad-yajsml
etherpad_1 | 
etherpad_1 | ejs@2.3.1 node_modules/ejs
etherpad_1 | 
etherpad_1 | jsonminify@0.2.3 node_modules/jsonminify
etherpad_1 | 
etherpad_1 | cookie-parser@1.3.4 node_modules/cookie-parser
etherpad_1 | ├── cookie-signature@1.0.6
etherpad_1 | └── cookie@0.1.2
etherpad_1 | 
etherpad_1 | express-session@1.11.1 node_modules/express-session
etherpad_1 | ├── utils-merge@1.0.0
etherpad_1 | ├── cookie-signature@1.0.6
etherpad_1 | ├── cookie@0.1.2
etherpad_1 | ├── on-headers@1.0.1
etherpad_1 | ├── parseurl@1.3.1
etherpad_1 | ├── depd@1.0.1
etherpad_1 | ├── crc@3.2.1
etherpad_1 | ├── debug@2.1.3 (ms@0.7.0)
etherpad_1 | └── uid-safe@1.1.0 (base64-url@1.2.1, native-or-bluebird@1.1.2)
etherpad_1 | 
etherpad_1 | measured@1.0.0 node_modules/measured
etherpad_1 | └── inherits@2.0.1
etherpad_1 | 
etherpad_1 | log4js@0.6.22 node_modules/log4js
etherpad_1 | ├── semver@1.1.4
etherpad_1 | ├── async@0.2.10
etherpad_1 | └── readable-stream@1.0.34 (isarray@0.0.1, inherits@2.0.1, string_decoder@0.10.31, core-util-is@1.0.2)
etherpad_1 | 
etherpad_1 | uglify-js@2.4.19 node_modules/uglify-js
etherpad_1 | ├── uglify-to-browserify@1.0.2
etherpad_1 | ├── async@0.2.10
etherpad_1 | ├── yargs@3.5.4 (decamelize@1.2.0, camelcase@1.2.1, window-size@0.1.0, wordwrap@0.0.2)
etherpad_1 | └── source-map@0.1.34 (amdefine@1.0.0)
etherpad_1 | 
etherpad_1 | clean-css@3.1.9 node_modules/clean-css
etherpad_1 | ├── commander@2.6.0
etherpad_1 | └── source-map@0.1.43 (amdefine@1.0.0)
etherpad_1 | 
etherpad_1 | supertest@0.15.0 node_modules/supertest
etherpad_1 | ├── methods@1.1.2
etherpad_1 | └── superagent@0.21.0 (extend@1.2.1, methods@1.0.1, cookiejar@2.0.1, component-emitter@1.1.2, reduce-component@1.0.1, qs@1.2.0, mime@1.2.11, formidable@1.0.14, debug@2.2.0, readable-stream@1.0.27-1, form-data@0.1.3)
etherpad_1 | 
etherpad_1 | mocha@2.2.4 node_modules/mocha
etherpad_1 | ├── escape-string-regexp@1.0.2
etherpad_1 | ├── supports-color@1.2.1
etherpad_1 | ├── diff@1.0.8
etherpad_1 | ├── growl@1.8.1
etherpad_1 | ├── commander@2.3.0
etherpad_1 | ├── debug@2.0.0 (ms@0.6.2)
etherpad_1 | ├── mkdirp@0.5.0 (minimist@0.0.8)
etherpad_1 | ├── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0)
etherpad_1 | └── glob@3.2.3 (inherits@2.0.1, graceful-fs@2.0.3, minimatch@0.2.14)
etherpad_1 | 
etherpad_1 | express@4.12.3 node_modules/express
etherpad_1 | ├── merge-descriptors@1.0.0
etherpad_1 | ├── utils-merge@1.0.0
etherpad_1 | ├── cookie-signature@1.0.6
etherpad_1 | ├── cookie@0.1.2
etherpad_1 | ├── fresh@0.2.4
etherpad_1 | ├── methods@1.1.2
etherpad_1 | ├── escape-html@1.0.1
etherpad_1 | ├── range-parser@1.0.3
etherpad_1 | ├── vary@1.0.1
etherpad_1 | ├── parseurl@1.3.1
etherpad_1 | ├── content-type@1.0.2
etherpad_1 | ├── finalhandler@0.3.4
etherpad_1 | ├── content-disposition@0.5.0
etherpad_1 | ├── path-to-regexp@0.1.3
etherpad_1 | ├── depd@1.0.1
etherpad_1 | ├── qs@2.4.1
etherpad_1 | ├── etag@1.5.1 (crc@3.2.1)
etherpad_1 | ├── debug@2.1.3 (ms@0.7.0)
etherpad_1 | ├── on-finished@2.2.1 (ee-first@1.1.0)
etherpad_1 | ├── proxy-addr@1.0.10 (forwarded@0.1.0, ipaddr.js@1.0.5)
etherpad_1 | ├── send@0.12.2 (destroy@1.0.3, ms@0.7.0, mime@1.3.4)
etherpad_1 | ├── serve-static@1.9.3 (send@0.12.3)
etherpad_1 | ├── type-is@1.6.13 (media-typer@0.3.0, mime-types@2.1.11)
etherpad_1 | └── accepts@1.2.13 (negotiator@0.5.3, mime-types@2.1.11)
etherpad_1 | 
etherpad_1 | swagger-node-express@2.1.3 node_modules/swagger-node-express
etherpad_1 | └── lodash@1.3.1
etherpad_1 | 
etherpad_1 | request@2.55.0 node_modules/request
etherpad_1 | ├── tunnel-agent@0.4.3
etherpad_1 | ├── caseless@0.9.0
etherpad_1 | ├── aws-sign2@0.5.0
etherpad_1 | ├── forever-agent@0.6.1
etherpad_1 | ├── form-data@0.2.0
etherpad_1 | ├── stringstream@0.0.5
etherpad_1 | ├── oauth-sign@0.6.0
etherpad_1 | ├── isstream@0.1.2
etherpad_1 | ├── json-stringify-safe@5.0.1
etherpad_1 | ├── node-uuid@1.4.7
etherpad_1 | ├── qs@2.4.2
etherpad_1 | ├── tough-cookie@2.2.2
etherpad_1 | ├── bl@0.9.5 (readable-stream@1.0.34)
etherpad_1 | ├── combined-stream@0.0.7 (delayed-stream@0.0.5)
etherpad_1 | ├── mime-types@2.0.14 (mime-db@1.12.0)
etherpad_1 | ├── http-signature@0.10.1 (assert-plus@0.1.5, asn1@0.1.11, ctype@0.5.3)
etherpad_1 | ├── hawk@2.3.1 (cryptiles@2.0.5, sntp@1.0.9, boom@2.10.1, hoek@2.16.3)
etherpad_1 | └── har-validator@1.8.0 (bluebird@2.10.2, commander@2.9.0, chalk@1.1.3, is-my-json-valid@2.13.1)
etherpad_1 | 
etherpad_1 | npm@2.7.6 node_modules/npm
etherpad_1 | 
etherpad_1 | wd@0.3.11 node_modules/wd
etherpad_1 | ├── vargs@0.1.0
etherpad_1 | ├── q@1.0.1
etherpad_1 | ├── underscore.string@2.3.3
etherpad_1 | ├── lodash@2.4.2
etherpad_1 | ├── request@2.46.0 (tunnel-agent@0.4.3, caseless@0.6.0, aws-sign2@0.5.0, forever-agent@0.5.2, oauth-sign@0.4.0, stringstream@0.0.5, json-stringify-safe@5.0.1, qs@1.2.2, node-uuid@1.4.7, mime-types@1.0.2, form-data@0.1.4, tough-cookie@2.2.2, bl@0.9.5, http-signature@0.10.1, hawk@1.1.1)
etherpad_1 | └── archiver@0.12.0 (buffer-crc32@0.2.5, lazystream@0.1.0, readable-stream@1.0.34, zip-stream@0.4.1, glob@4.0.6, tar-stream@1.0.2)
etherpad_1 | 
etherpad_1 | socket.io@1.3.5 node_modules/socket.io
etherpad_1 | ├── debug@2.1.0 (ms@0.6.2)
etherpad_1 | ├── has-binary-data@0.1.3 (isarray@0.0.1)
etherpad_1 | ├── engine.io@1.5.1 (base64id@0.1.0, debug@1.0.3, engine.io-parser@1.2.1, ws@0.5.0)
etherpad_1 | ├── socket.io-adapter@0.3.1 (object-keys@1.0.1, debug@1.0.2, socket.io-parser@2.2.2)
etherpad_1 | ├── socket.io-parser@2.2.4 (isarray@0.0.1, debug@0.7.4, component-emitter@1.1.2, benchmark@1.0.0, json3@3.2.6)
etherpad_1 | └── socket.io-client@1.3.5 (to-array@0.1.3, indexof@0.0.1, component-bind@1.0.0, debug@0.7.4, backo2@1.0.2, object-component@0.0.3, component-emitter@1.1.2, has-binary@0.1.6, parseuri@0.0.2, engine.io-client@1.5.1)
etherpad_1 | 
etherpad_1 | ueberDB@0.2.15 node_modules/ueberDB
etherpad_1 | ├── felix-couchdb@1.0.7
etherpad_1 | ├── dirty@0.9.9
etherpad_1 | ├── async@0.1.15
etherpad_1 | ├── mysql@2.6.1 (require-all@1.0.0, readable-stream@1.1.14, bignumber.js@2.0.5)
etherpad_1 | ├── cassandra-driver@2.0.1 (async@0.9.2, long@2.4.0)
etherpad_1 | ├── pg@4.3.0 (packet-reader@0.2.0, pg-connection-string@0.1.3, buffer-writer@1.0.0, generic-pool@2.1.1, pg-types@1.11.0, pgpass@0.0.3)
etherpad_1 | └── redis@2.6.1 (double-ended-queue@2.1.0-0, redis-parser@2.0.1, redis-commands@1.2.0)
etherpad_1 | 
etherpad_1 | cheerio@0.19.0 node_modules/cheerio
etherpad_1 | ├── entities@1.1.1
etherpad_1 | ├── lodash@3.10.1
etherpad_1 | ├── dom-serializer@0.1.0 (domelementtype@1.1.3)
etherpad_1 | ├── htmlparser2@3.8.3 (domelementtype@1.3.0, domutils@1.5.1, entities@1.0.0, domhandler@2.3.0, readable-stream@1.1.14)
etherpad_1 | └── css-select@1.0.0 (boolbase@1.0.0, css-what@1.0.0, nth-check@1.0.1, domutils@1.4.3)
etherpad_1 | Ensure jQuery is downloaded and up to date...
etherpad_1 | Clearing minified cache...
etherpad_1 | Ensure custom css/js files are created...
etherpad_1 | Started Etherpad...
etherpad_1 | [2016-06-06 14:29:15.148] [ERROR] console - ERROR: Problem while initalizing the database
etherpad_1 | [2016-06-06 14:29:15.149] [ERROR] console - Error: getaddrinfo ENOTFOUND
etherpad_1 |     at errnoException (dns.js:37:11)
etherpad_1 |     at Object.onanswer [as oncomplete] (dns.js:126:16)
etherpad_1 |     --------------------
etherpad_1 |     at Protocol._enqueue (/var/lib/etherpad/src/node_modules/ueberDB/node_modules/mysql/lib/protocol/Protocol.js:135:48)
etherpad_1 |     at Protocol.handshake (/var/lib/etherpad/src/node_modules/ueberDB/node_modules/mysql/lib/protocol/Protocol.js:52:41)
etherpad_1 |     at Connection.connect (/var/lib/etherpad/src/node_modules/ueberDB/node_modules/mysql/lib/Connection.js:109:18)
etherpad_1 |     at Connection._implyConnect (/var/lib/etherpad/src/node_modules/ueberDB/node_modules/mysql/lib/Connection.js:387:10)
etherpad_1 |     at Connection.query (/var/lib/etherpad/src/node_modules/ueberDB/node_modules/mysql/lib/Connection.js:174:8)
etherpad_1 |     at exports.database.init (/var/lib/etherpad/src/node_modules/ueberDB/mysql_db.js:74:6)
etherpad_1 |     at exports.database.init (/var/lib/etherpad/src/node_modules/ueberDB/CacheAndBufferLayer.js:110:18)
etherpad_1 |     at exports.database.init (/var/lib/etherpad/src/node_modules/ueberDB/CloneAndAtomicLayer.js:48:11)
etherpad_1 |     at Object.exports.init (/var/lib/etherpad/src/node/db/DB.js:41:6)
etherpad_1 |     at async.waterfall.hooks.aCallAll.settings (/var/lib/etherpad/src/node/server.js:62:8)

Using Docker-compose

$ export $(cat envs)
$ docker-compose up
Creating etherpad_mariadb_1
Creating etherpad_etherpad_1
Attaching to etherpad_mariadb_1, etherpad_etherpad_1
mariadb_1   | Running mysql_install_db ...
mariadb_1   | Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
mariadb_1   | 160606 14:24:09 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 31 ...
etherpad_1  | + '[' '!' -z '' ']'
etherpad_1  | + sed -i s/DB_HOST/mariadb/ settings.json
etherpad_1  | + sed -i s/DB_DBID/etherpad/ settings.json
etherpad_1  | + sed -i s/DB_PASS/etherpad/ settings.json
etherpad_1  | + sed -i s/DB_PORT/3306/ settings.json
etherpad_1  | + sed -i s/DB_USER/etherpad/ settings.json
etherpad_1  | + ./bin/run.sh
etherpad_1  | Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
mariadb_1   | OK
mariadb_1   | Filling help tables...
mariadb_1   | 160606 14:24:11 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 38 ...
mariadb_1   | OK
mariadb_1   | 
mariadb_1   | To start mysqld at boot time you have to copy
mariadb_1   | support-files/mysql.server to the right place for your system
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 785e1e40f158 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   | You can start the MariaDB daemon with:
mariadb_1   | cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
mariadb_1   | 
mariadb_1   | You can test the MariaDB daemon with mysql-test-run.pl
mariadb_1   | cd '/usr/mysql-test' ; perl mysql-test-run.pl
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 sales@mariadb.com.
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   | Finished mysql_install_db
mariadb_1   | 160606 14:24:11 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
mariadb_1   | 160606 14:24:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
etherpad_1  | npm WARN deprecated ueberDB@0.2.15: Package
etherpad_1  | npm WARN deprecated graceful-fs@3.0.6: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
etherpad_1  | npm WARN deprecated native-or-bluebird@1.1.2: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
etherpad_1  | npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
etherpad_1  | npm WARN deprecated lodash@1.3.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
etherpad_1  | npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
etherpad_1  | 
etherpad_1  | > ws@0.5.0 install /var/lib/etherpad/src/node_modules/socket.io/node_modules/engine.io/node_modules/ws
etherpad_1  | > (node-gyp rebuild 2> builderror.log) || (exit 0)
etherpad_1  | 
etherpad_1  | 
etherpad_1  | > ws@0.4.31 install /var/lib/etherpad/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
etherpad_1  | > (node-gyp rebuild 2> builderror.log) || (exit 0)
etherpad_1  | 
etherpad_1  | channels@0.0.4 node_modules/channels
etherpad_1  | 
etherpad_1  | security@1.0.0 node_modules/security
etherpad_1  | 
etherpad_1  | async-stacktrace@0.0.2 node_modules/async-stacktrace
etherpad_1  | 
etherpad_1  | slide@1.1.6 node_modules/slide
etherpad_1  | 
etherpad_1  | graceful-fs@3.0.6 node_modules/graceful-fs
etherpad_1  | 
etherpad_1  | tinycon@0.0.1 node_modules/tinycon
etherpad_1  | 
etherpad_1  | formidable@1.0.17 node_modules/formidable
etherpad_1  | 
etherpad_1  | async@0.9.0 node_modules/async
etherpad_1  | 
etherpad_1  | underscore@1.8.3 node_modules/underscore
etherpad_1  | 
etherpad_1  | etherpad-require-kernel@1.0.9 node_modules/etherpad-require-kernel
etherpad_1  | 
etherpad_1  | languages4translatewiki@0.1.3 node_modules/languages4translatewiki
etherpad_1  | 
etherpad_1  | unorm@1.3.3 node_modules/unorm
etherpad_1  | 
etherpad_1  | semver@4.3.3 node_modules/semver
etherpad_1  | 
etherpad_1  | resolve@1.1.6 node_modules/resolve
etherpad_1  | 
etherpad_1  | etherpad-yajsml@0.0.2 node_modules/etherpad-yajsml
etherpad_1  | 
etherpad_1  | ejs@2.3.1 node_modules/ejs
etherpad_1  | 
etherpad_1  | jsonminify@0.2.3 node_modules/jsonminify
etherpad_1  | 
etherpad_1  | cookie-parser@1.3.4 node_modules/cookie-parser
etherpad_1  | ├── cookie-signature@1.0.6
etherpad_1  | └── cookie@0.1.2
etherpad_1  | 
etherpad_1  | measured@1.0.0 node_modules/measured
etherpad_1  | └── inherits@2.0.1
etherpad_1  | 
etherpad_1  | express-session@1.11.1 node_modules/express-session
etherpad_1  | ├── cookie-signature@1.0.6
etherpad_1  | ├── on-headers@1.0.1
etherpad_1  | ├── parseurl@1.3.1
etherpad_1  | ├── utils-merge@1.0.0
etherpad_1  | ├── cookie@0.1.2
etherpad_1  | ├── depd@1.0.1
etherpad_1  | ├── crc@3.2.1
etherpad_1  | ├── uid-safe@1.1.0 (base64-url@1.2.1, native-or-bluebird@1.1.2)
etherpad_1  | └── debug@2.1.3 (ms@0.7.0)
etherpad_1  | 
etherpad_1  | log4js@0.6.22 node_modules/log4js
etherpad_1  | ├── semver@1.1.4
etherpad_1  | ├── async@0.2.10
etherpad_1  | └── readable-stream@1.0.34 (isarray@0.0.1, inherits@2.0.1, string_decoder@0.10.31, core-util-is@1.0.2)
etherpad_1  | 
etherpad_1  | clean-css@3.1.9 node_modules/clean-css
etherpad_1  | ├── commander@2.6.0
etherpad_1  | └── source-map@0.1.43 (amdefine@1.0.0)
etherpad_1  | 
etherpad_1  | supertest@0.15.0 node_modules/supertest
etherpad_1  | ├── methods@1.1.2
etherpad_1  | └── superagent@0.21.0 (extend@1.2.1, methods@1.0.1, cookiejar@2.0.1, component-emitter@1.1.2, reduce-component@1.0.1, qs@1.2.0, mime@1.2.11, readable-stream@1.0.27-1, formidable@1.0.14, debug@2.2.0, form-data@0.1.3)
etherpad_1  | 
etherpad_1  | uglify-js@2.4.19 node_modules/uglify-js
etherpad_1  | ├── uglify-to-browserify@1.0.2
etherpad_1  | ├── async@0.2.10
etherpad_1  | ├── yargs@3.5.4 (decamelize@1.2.0, camelcase@1.2.1, window-size@0.1.0, wordwrap@0.0.2)
etherpad_1  | └── source-map@0.1.34 (amdefine@1.0.0)
etherpad_1  | 
etherpad_1  | express@4.12.3 node_modules/express
etherpad_1  | ├── merge-descriptors@1.0.0
etherpad_1  | ├── utils-merge@1.0.0
etherpad_1  | ├── cookie-signature@1.0.6
etherpad_1  | ├── cookie@0.1.2
etherpad_1  | ├── fresh@0.2.4
etherpad_1  | ├── methods@1.1.2
etherpad_1  | ├── escape-html@1.0.1
etherpad_1  | ├── range-parser@1.0.3
etherpad_1  | ├── vary@1.0.1
etherpad_1  | ├── parseurl@1.3.1
etherpad_1  | ├── content-type@1.0.2
etherpad_1  | ├── finalhandler@0.3.4
etherpad_1  | ├── content-disposition@0.5.0
etherpad_1  | ├── path-to-regexp@0.1.3
etherpad_1  | ├── depd@1.0.1
etherpad_1  | ├── qs@2.4.1
etherpad_1  | ├── etag@1.5.1 (crc@3.2.1)
etherpad_1  | ├── debug@2.1.3 (ms@0.7.0)
etherpad_1  | ├── on-finished@2.2.1 (ee-first@1.1.0)
etherpad_1  | ├── send@0.12.2 (destroy@1.0.3, ms@0.7.0, mime@1.3.4)
etherpad_1  | ├── proxy-addr@1.0.10 (forwarded@0.1.0, ipaddr.js@1.0.5)
etherpad_1  | ├── type-is@1.6.13 (media-typer@0.3.0, mime-types@2.1.11)
etherpad_1  | ├── accepts@1.2.13 (negotiator@0.5.3, mime-types@2.1.11)
etherpad_1  | └── serve-static@1.9.3 (send@0.12.3)
etherpad_1  | 
etherpad_1  | mocha@2.2.4 node_modules/mocha
etherpad_1  | ├── escape-string-regexp@1.0.2
etherpad_1  | ├── supports-color@1.2.1
etherpad_1  | ├── diff@1.0.8
etherpad_1  | ├── growl@1.8.1
etherpad_1  | ├── commander@2.3.0
etherpad_1  | ├── debug@2.0.0 (ms@0.6.2)
etherpad_1  | ├── mkdirp@0.5.0 (minimist@0.0.8)
etherpad_1  | ├── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0)
etherpad_1  | └── glob@3.2.3 (inherits@2.0.1, graceful-fs@2.0.3, minimatch@0.2.14)
etherpad_1  | 
etherpad_1  | ueberDB@0.2.15 node_modules/ueberDB
etherpad_1  | ├── felix-couchdb@1.0.7
etherpad_1  | ├── dirty@0.9.9
etherpad_1  | ├── async@0.1.15
etherpad_1  | ├── redis@2.6.1 (double-ended-queue@2.1.0-0, redis-parser@2.0.1, redis-commands@1.2.0)
etherpad_1  | ├── cassandra-driver@2.0.1 (async@0.9.2, long@2.4.0)
etherpad_1  | ├── mysql@2.6.1 (require-all@1.0.0, bignumber.js@2.0.5, readable-stream@1.1.14)
etherpad_1  | └── pg@4.3.0 (packet-reader@0.2.0, pg-connection-string@0.1.3, buffer-writer@1.0.0, generic-pool@2.1.1, pgpass@0.0.3, pg-types@1.11.0)
etherpad_1  | 
etherpad_1  | swagger-node-express@2.1.3 node_modules/swagger-node-express
etherpad_1  | └── lodash@1.3.1
etherpad_1  | 
etherpad_1  | request@2.55.0 node_modules/request
etherpad_1  | ├── caseless@0.9.0
etherpad_1  | ├── tunnel-agent@0.4.3
etherpad_1  | ├── aws-sign2@0.5.0
etherpad_1  | ├── forever-agent@0.6.1
etherpad_1  | ├── form-data@0.2.0
etherpad_1  | ├── stringstream@0.0.5
etherpad_1  | ├── oauth-sign@0.6.0
etherpad_1  | ├── isstream@0.1.2
etherpad_1  | ├── json-stringify-safe@5.0.1
etherpad_1  | ├── node-uuid@1.4.7
etherpad_1  | ├── qs@2.4.2
etherpad_1  | ├── tough-cookie@2.2.2
etherpad_1  | ├── bl@0.9.5 (readable-stream@1.0.34)
etherpad_1  | ├── mime-types@2.0.14 (mime-db@1.12.0)
etherpad_1  | ├── combined-stream@0.0.7 (delayed-stream@0.0.5)
etherpad_1  | ├── http-signature@0.10.1 (assert-plus@0.1.5, asn1@0.1.11, ctype@0.5.3)
etherpad_1  | ├── hawk@2.3.1 (cryptiles@2.0.5, sntp@1.0.9, boom@2.10.1, hoek@2.16.3)
etherpad_1  | └── har-validator@1.8.0 (bluebird@2.10.2, commander@2.9.0, chalk@1.1.3, is-my-json-valid@2.13.1)
etherpad_1  | 
etherpad_1  | npm@2.7.6 node_modules/npm
etherpad_1  | 
etherpad_1  | cheerio@0.19.0 node_modules/cheerio
etherpad_1  | ├── entities@1.1.1
etherpad_1  | ├── dom-serializer@0.1.0 (domelementtype@1.1.3)
etherpad_1  | ├── css-select@1.0.0 (boolbase@1.0.0, css-what@1.0.0, nth-check@1.0.1, domutils@1.4.3)
etherpad_1  | ├── lodash@3.10.1
etherpad_1  | └── htmlparser2@3.8.3 (domelementtype@1.3.0, domutils@1.5.1, entities@1.0.0, domhandler@2.3.0, readable-stream@1.1.14)
etherpad_1  | 
etherpad_1  | socket.io@1.3.5 node_modules/socket.io
etherpad_1  | ├── has-binary-data@0.1.3 (isarray@0.0.1)
etherpad_1  | ├── debug@2.1.0 (ms@0.6.2)
etherpad_1  | ├── engine.io@1.5.1 (base64id@0.1.0, debug@1.0.3, engine.io-parser@1.2.1, ws@0.5.0)
etherpad_1  | ├── socket.io-adapter@0.3.1 (object-keys@1.0.1, debug@1.0.2, socket.io-parser@2.2.2)
etherpad_1  | ├── socket.io-parser@2.2.4 (isarray@0.0.1, debug@0.7.4, component-emitter@1.1.2, benchmark@1.0.0, json3@3.2.6)
etherpad_1  | └── socket.io-client@1.3.5 (to-array@0.1.3, indexof@0.0.1, component-bind@1.0.0, debug@0.7.4, backo2@1.0.2, object-component@0.0.3, component-emitter@1.1.2, has-binary@0.1.6, parseuri@0.0.2, engine.io-client@1.5.1)
etherpad_1  | 
etherpad_1  | wd@0.3.11 node_modules/wd
etherpad_1  | ├── vargs@0.1.0
etherpad_1  | ├── q@1.0.1
etherpad_1  | ├── underscore.string@2.3.3
etherpad_1  | ├── lodash@2.4.2
etherpad_1  | ├── request@2.46.0 (tunnel-agent@0.4.3, caseless@0.6.0, forever-agent@0.5.2, aws-sign2@0.5.0, oauth-sign@0.4.0, stringstream@0.0.5, json-stringify-safe@5.0.1, qs@1.2.2, node-uuid@1.4.7, mime-types@1.0.2, tough-cookie@2.2.2, http-signature@0.10.1, form-data@0.1.4, bl@0.9.5, hawk@1.1.1)
etherpad_1  | └── archiver@0.12.0 (buffer-crc32@0.2.5, lazystream@0.1.0, readable-stream@1.0.34, tar-stream@1.0.2, glob@4.0.6, zip-stream@0.4.1)
etherpad_1  | Ensure jQuery is downloaded and up to date...
etherpad_1  | Clearing minified cache...
etherpad_1  | Ensure custom css/js files are created...
etherpad_1  | Started Etherpad...
etherpad_1  | [2016-06-06 14:24:40.671] [INFO] console - Installed plugins: 
etherpad_1  | [2016-06-06 14:24:40.681] [INFO] console - Report bugs at https://github.com/ether/etherpad-lite/issues
etherpad_1  | [2016-06-06 14:24:40.681] [WARN] console - Can't get git version for server header
etherpad_1  | ENOENT, no such file or directory '/var/lib/etherpad/.git/HEAD'
etherpad_1  | [2016-06-06 14:24:40.682] [WARN] console - Can't get git version for server header
etherpad_1  | ENOENT, no such file or directory '/var/lib/etherpad/.git/HEAD'
etherpad_1  | [2016-06-06 14:24:40.682] [INFO] console - Your Etherpad version is 1.5.7 ()
etherpad_1  | [2016-06-06 14:24:40.794] [INFO] console - You can access your Etherpad instance at http://0.0.0.0:9001/
etherpad_1  | [2016-06-06 14:24:40.794] [WARN] console - Admin username and password not set in settings.json.  To access admin please uncomment and edit 'users' in settings.json
etherpad_1  | [2016-06-06 14:25:26.628] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:26.729] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:26.831] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:33.049] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:33.272] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:33.419] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:33.520] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:33.621] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:33.654] [INFO] access - [CREATE] Pad "r1swv82GOl": Client Pfp44y_DNyqoN-zjAAAA with IP "192.168.121.1" created the pad
etherpad_1  | [2016-06-06 14:25:33.723] [INFO] ueberDB - Flushed 6 values
etherpad_1  | [2016-06-06 14:25:33.828] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:34.029] [INFO] ueberDB - Flushed 1 values
etherpad_1  | [2016-06-06 14:25:37.303] [INFO] access - [LEAVE] Pad "r1swv82GOl": Author "a.Dnjri22r59OKKMg8" on client Pfp44y_DNyqoN-zjAAAA with IP "192.168.121.1" left the pad
^CGracefully stopping... (press Ctrl+C again to force)
Stopping etherpad_etherpad_1 ... done
Stopping etherpad_mariadb_1 ... done
surajssd commented 8 years ago

Additional info:

docker version

$ docker version
Client:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 21:39:21 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:39:21 2016
 OS/Arch:      linux/amd64

docker-compose version

$ docker-compose version
docker-compose version 1.7.1, build 6c29830
docker-py version: 1.8.1
CPython version: 2.7.11
OpenSSL version: OpenSSL 1.0.2h-fips  3 May 2016
surajssd commented 8 years ago

Another example:

Using following docker-compose file:

$ cat docker-compose.yml 
version: "2"

services:
  mariadb:
    image: centos/mariadb
    ports:
      - "$DB_PORT"
    environment:
      MYSQL_ROOT_PASSWORD: $ROOT_PASS
      MYSQL_DATABASE: $DB_NAME
      MYSQL_PASSWORD: $DB_PASS
      MYSQL_USER: $DB_USER

  wordpress:
    image: wordpress
    ports:
      - "8080:80"
    depends_on:
      - mariadb
    restart: always
    environment:
      WORDPRESS_DB_HOST: $DB_HOST:$DB_PORT
      WORDPRESS_DB_NAME: $DB_NAME
      WORDPRESS_DB_PASSWORD: $DB_PASS
      WORDPRESS_DB_USER: $DB_USER

and envs file

$ cat envs 
DB_HOST=mariadb
ROOT_PASS=wordpress
DB_NAME=wordpress
DB_PASS=wordpress
DB_USER=wordpress
DB_PORT=3306

Using libcompose it fails:

$ export $(cat envs)
$ ./libcompose up
WARN[0000] Note: This is an experimental alternate implementation of the Compose CLI (https://github.com/docker/compose) 
INFO[0000] Project [wordpress]: Starting project        
INFO[0000] [0/2] [mariadb]: Starting                    
INFO[0001] [1/2] [mariadb]: Started                     
INFO[0001] [1/2] [wordpress]: Starting                  
INFO[0002] [2/2] [wordpress]: Started                   
INFO[0002] Project [wordpress]: Project started         
mariadb_1   | Running mysql_install_db ...
mariadb_1   | Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
mariadb_1   | 160606 14:37:17 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 31 ...
wordpress_1 | WordPress not found in /var/www/html - copying now...
wordpress_1 | Complete! WordPress has been successfully copied to /var/www/html
mariadb_1   | OK
mariadb_1   | Filling help tables...
mariadb_1   | 160606 14:37:19 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 38 ...
mariadb_1   | OK
mariadb_1   | 
mariadb_1   | To start mysqld at boot time you have to copy
mariadb_1   | support-files/mysql.server to the right place for your system
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 e99e40733f2d 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   | You can start the MariaDB daemon with:
mariadb_1   | cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
mariadb_1   | 
mariadb_1   | You can test the MariaDB daemon with mysql-test-run.pl
mariadb_1   | cd '/usr/mysql-test' ; perl mysql-test-run.pl
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 sales@mariadb.com.
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   | Finished mysql_install_db
mariadb_1   | 160606 14:37:19 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
mariadb_1   | 160606 14:37:19 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
wordpress_1 | 
wordpress_1 | MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
wordpress_1 | 
wordpress_1 | Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 10
wordpress_1 | 
wordpress_1 | Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 10
wordpress_1 | 
wordpress_1 | MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
wordpress_1 | 
wordpress_1 | Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 10
wordpress_1 | 
wordpress_1 | Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 10
wordpress_1 | 
wordpress_1 | MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
wordpress_1 | 
wordpress_1 | Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 10
wordpress_1 | 
wordpress_1 | Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 10
^C
Gracefully stopping...
ERRO[0009] Failed EventType: 0 wordpress : net/http: request canceled 
ERRO[0009] Failed EventType: 0 mariadb : net/http: request canceled 
ERRO[0009] Failed to start: mariadb : net/http: request canceled 
ERRO[0009] Failed to start: wordpress : net/http: request canceled 

Using Docker-compose it works

$ export $(cat envs)
$ docker-compose up
Creating wordpress_mariadb_1
Creating wordpress_wordpress_1
Attaching to wordpress_mariadb_1, wordpress_wordpress_1
mariadb_1    | Running mysql_install_db ...
mariadb_1    | Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
mariadb_1    | 160606 14:38:06 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 32 ...
wordpress_1  | WordPress not found in /var/www/html - copying now...
wordpress_1  | Complete! WordPress has been successfully copied to /var/www/html
mariadb_1    | OK
mariadb_1    | Filling help tables...
mariadb_1    | 160606 14:38:08 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 40 ...
mariadb_1    | OK
mariadb_1    | 
mariadb_1    | To start mysqld at boot time you have to copy
mariadb_1    | support-files/mysql.server to the right place for your system
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 3f79481dfb46 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    | You can start the MariaDB daemon with:
mariadb_1    | cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
mariadb_1    | 
mariadb_1    | You can test the MariaDB daemon with mysql-test-run.pl
mariadb_1    | cd '/usr/mysql-test' ; perl mysql-test-run.pl
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 sales@mariadb.com.
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    | Finished mysql_install_db
mariadb_1    | 160606 14:38:08 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
mariadb_1    | 160606 14:38:08 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
wordpress_1  | 
wordpress_1  | Warning: mysqli::mysqli(): (HY000/2002): Connection refused in - on line 10
wordpress_1  | 
wordpress_1  | MySQL Connection Error: (2002) Connection refused
wordpress_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
wordpress_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
wordpress_1  | [Mon Jun 06 14:38:11.853270 2016] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.10 (Debian) PHP/5.6.21 configured -- resuming normal operations
wordpress_1  | [Mon Jun 06 14:38:11.853299 2016] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
wordpress_1  | 192.168.121.1 - - [06/Jun/2016:14:38:32 +0000] "GET / HTTP/1.1" 302 413 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36"
wordpress_1  | 192.168.121.1 - - [06/Jun/2016:14:38:32 +0000] "GET /wp-admin/install.php HTTP/1.1" 200 3454 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36"
wordpress_1  | 192.168.121.1 - - [06/Jun/2016:14:38:34 +0000] "GET /favicon.ico HTTP/1.1" 200 239 "http://192.168.121.30:8080/wp-admin/install.php" "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36"
^CGracefully stopping... (press Ctrl+C again to force)
Stopping wordpress_wordpress_1 ... done
Stopping wordpress_mariadb_1 ... done