[Solved] Docker container exits code 1

2016-03-17 10:42:39 0 [Note] /usr/sbin/mysqld (mysqld 5.6.27) starting as process 78 ...
2016-03-17 10:42:39 78 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-03-17 10:42:39 78 [Note] InnoDB: The InnoDB memory heap is disabled
2016-03-17 10:42:39 78 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-03-17 10:42:39 78 [Note] InnoDB: Memory barrier is not used
2016-03-17 10:42:39 78 [Note] InnoDB: Compressed tables use zlib 1.2.7
2016-03-17 10:42:39 78 [Note] InnoDB: Using Linux native AIO
2016-03-17 10:42:39 78 [Note] InnoDB: Using CPU crc32 instructions
2016-03-17 10:42:39 78 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-03-17 10:42:39 78 [Note] InnoDB: Completed initialization of buffer pool
2016-03-17 10:42:39 78 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2016-03-17 10:42:39 78 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2016-03-17 10:42:39 78 [Note] InnoDB: Database physically writes the file full: wait...
2016-03-17 10:42:39 78 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2016-03-17 10:42:39 78 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2016-03-17 10:42:39 78 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2016-03-17 10:42:39 78 [Warning] InnoDB: New log files created, LSN=45781
2016-03-17 10:42:39 78 [Note] InnoDB: Doublewrite buffer not found: creating new
2016-03-17 10:42:39 78 [Note] InnoDB: Doublewrite buffer created
2016-03-17 10:42:39 78 [Note] InnoDB: 128 rollback segment(s) are active.
2016-03-17 10:42:39 78 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-03-17 10:42:39 78 [Note] InnoDB: Foreign key constraint system tables created
2016-03-17 10:42:39 78 [Note] InnoDB: Creating tablespace and datafile system tables.
2016-03-17 10:42:39 78 [Note] InnoDB: Tablespace and datafile system tables created.
2016-03-17 10:42:39 78 [Note] InnoDB: Waiting for purge to start
2016-03-17 10:42:39 78 [Note] InnoDB: 5.6.27 started; log sequence number 0
2016-03-17 10:42:40 78 [Note] Binlog end
2016-03-17 10:42:40 78 [Note] InnoDB: FTS optimize thread exiting.
2016-03-17 10:42:40 78 [Note] InnoDB: Starting shutdown...
2016-03-17 10:42:41 78 [Note] InnoDB: Shutdown completed; log sequence number 1625977
2016-03-17 10:42:41 0 [Note] /usr/sbin/mysqld (mysqld 5.6.27) starting as process 101 ...
2016-03-17 10:42:41 101 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-03-17 10:42:41 101 [Note] InnoDB: The InnoDB memory heap is disabled
2016-03-17 10:42:41 101 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-03-17 10:42:41 101 [Note] InnoDB: Memory barrier is not used
2016-03-17 10:42:41 101 [Note] InnoDB: Compressed tables use zlib 1.2.7
2016-03-17 10:42:41 101 [Note] InnoDB: Using Linux native AIO
2016-03-17 10:42:41 101 [Note] InnoDB: Using CPU crc32 instructions
2016-03-17 10:42:41 101 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-03-17 10:42:41 101 [Note] InnoDB: Completed initialization of buffer pool
2016-03-17 10:42:41 101 [Note] InnoDB: Highest supported file format is Barracuda.
2016-03-17 10:42:41 101 [Note] InnoDB: 128 rollback segment(s) are active.
2016-03-17 10:42:41 101 [Note] InnoDB: Waiting for purge to start
2016-03-17 10:42:41 101 [Note] InnoDB: 5.6.27 started; log sequence number 1625977
2016-03-17 10:42:41 101 [Note] Binlog end
2016-03-17 10:42:41 101 [Note] InnoDB: FTS optimize thread exiting.
2016-03-17 10:42:41 101 [Note] InnoDB: Starting shutdown...
2016-03-17 10:42:43 101 [Note] InnoDB: Shutdown completed; log sequence number 1625987
2016-03-17 10:42:43 0 [Note] mysqld (mysqld 5.6.27) starting as process 124 ...
2016-03-17 10:42:43 124 [Note] Plugin 'FEDERATED' is disabled.
2016-03-17 10:42:43 124 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-03-17 10:42:43 124 [Note] InnoDB: The InnoDB memory heap is disabled
2016-03-17 10:42:43 124 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-03-17 10:42:43 124 [Note] InnoDB: Memory barrier is not used
2016-03-17 10:42:43 124 [Note] InnoDB: Compressed tables use zlib 1.2.7
2016-03-17 10:42:43 124 [Note] InnoDB: Using Linux native AIO
2016-03-17 10:42:43 124 [Note] InnoDB: Using CPU crc32 instructions
2016-03-17 10:42:43 124 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-03-17 10:42:43 124 [Note] InnoDB: Completed initialization of buffer pool
2016-03-17 10:42:43 124 [Note] InnoDB: Highest supported file format is Barracuda.
2016-03-17 10:42:43 124 [Note] InnoDB: 128 rollback segment(s) are active.
2016-03-17 10:42:43 124 [Note] InnoDB: Waiting for purge to start
2016-03-17 10:42:43 124 [Note] InnoDB: 5.6.27 started; log sequence number 1625987
2016-03-17 10:42:43 124 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: fb04c1ef-ec2c-11e5-9196-0242ac110004.
2016-03-17 10:42:43 124 [Note] Event Scheduler: Loaded 0 events
2016-03-17 10:42:43 124 [Note] mysqld: ready for connections.
Version: '5.6.27'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
2016-03-17 10:42:44 124 [Note] mysqld: Normal shutdown

2016-03-17 10:42:44 124 [Note] Giving 0 client threads a chance to die gracefully
2016-03-17 10:42:44 124 [Note] Event Scheduler: Purging the queue. 0 events
2016-03-17 10:42:44 124 [Note] Shutting down slave threads
2016-03-17 10:42:44 124 [Note] Forcefully disconnecting 0 remaining clients
2016-03-17 10:42:44 124 [Note] Binlog end
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'partition'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'BLACKHOLE'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'ARCHIVE'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_METRICS'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_CMPMEM'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_CMP'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_LOCKS'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'INNODB_TRX'
2016-03-17 10:42:44 124 [Note] Shutting down plugin 'InnoDB'
2016-03-17 10:42:44 124 [Note] InnoDB: FTS optimize thread exiting.
2016-03-17 10:42:44 124 [Note] InnoDB: Starting shutdown...
2016-03-17 10:42:45 124 [Note] InnoDB: Shutdown completed; log sequence number 1625997
2016-03-17 10:42:45 124 [Note] Shutting down plugin 'MEMORY'
2016-03-17 10:42:45 124 [Note] Shutting down plugin 'CSV'
2016-03-17 10:42:45 124 [Note] Shutting down plugin 'MRG_MYISAM'
2016-03-17 10:42:45 124 [Note] Shutting down plugin 'MyISAM'
2016-03-17 10:42:45 124 [Note] Shutting down plugin 'sha256_password'
2016-03-17 10:42:45 124 [Note] Shutting down plugin 'mysql_old_password'
2016-03-17 10:42:45 124 [Note] Shutting down plugin 'mysql_native_password'
2016-03-17 10:42:45 124 [Note] Shutting down plugin 'binlog'
2016-03-17 10:42:45 124 [Note] mysqld: Shutdown complete

2016-03-17 10:42:46 0 [Note] mysqld (mysqld 5.6.27) starting as process 163 ...
2016-03-17 10:42:46 163 [Note] Plugin 'FEDERATED' is disabled.
2016-03-17 10:42:46 163 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-03-17 10:42:46 163 [Note] InnoDB: The InnoDB memory heap is disabled
2016-03-17 10:42:46 163 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-03-17 10:42:46 163 [Note] InnoDB: Memory barrier is not used
2016-03-17 10:42:46 163 [Note] InnoDB: Compressed tables use zlib 1.2.7
2016-03-17 10:42:46 163 [Note] InnoDB: Using Linux native AIO
2016-03-17 10:42:46 163 [Note] InnoDB: Using CPU crc32 instructions
2016-03-17 10:42:46 163 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-03-17 10:42:46 163 [Note] InnoDB: Completed initialization of buffer pool
2016-03-17 10:42:46 163 [Note] InnoDB: Highest supported file format is Barracuda.
2016-03-17 10:42:46 163 [Note] InnoDB: 128 rollback segment(s) are active.
2016-03-17 10:42:46 163 [Note] InnoDB: Waiting for purge to start
2016-03-17 10:42:46 163 [Note] InnoDB: 5.6.27 started; log sequence number 1625997
2016-03-17 10:42:46 163 [Note] Server hostname (bind-address): '*'; port: 3306
2016-03-17 10:42:46 163 [Note] IPv6 is available.
2016-03-17 10:42:46 163 [Note]   - '::' resolves to '::';
2016-03-17 10:42:46 163 [Note] Server socket created on IP: '::'.
2016-03-17 10:42:46 163 [Note] Event Scheduler: Loaded 0 events
2016-03-17 10:42:46 163 [Note] mysqld: ready for connections.
Version: '5.6.27'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
/docker-entry.sh: line 110: cd: /mattermost/bin: No such file or directory

I am currently using Ubuntu 15.10 machine on my server, and Gitlab, and Owncloud as docker containers. Our team needs private chatting service, so we choose Mattermost.

We just run a single line in the Mattermost’s installation guide. However, docker logs mattermost-dev give me /docker-entry.sh: line 110: cd: /mattermost/bin: No such file or directory at the end of the program. I think permission problem, but I don’t know how to debug on this container.

If you want more additional information, please ask me anything okay.

I have the same problem …
Using DEV works:
docker run --name mattermost-dev -d --publish 8065:80 mattermost/platform:dev

1 Like

It’s working. Thanks