docker mattermostでシェルに入れない
ご覧いただきありがとうございます。
docker上のmattermostのデータ永続化のために、
以下の手順で構築を行いました。
環境はWindows10です。
Dockerfile を作成
FROM busybox VOLUME /var/lib/mysql VOLUME /mm/mattermost
Docker イメージを作成
$ docker build -t mattermost_storage .
Docker コンテナの起動
$ docker run -it --restart=always --name mattermost_storage mattermost_storage view raw
Mattermost のコンテナ作成
$ docker run --restart=always --name mattermost --volumes-from mattermost_storage -d --publish 8065:8065 mattermost/mattermost-preview
しかし、シェルに入れません。
docker exec -it mattermost /bin/bash
(docker exec -it mattermost /bin/sh)でも同様です。
Error response from daemon: Container 4efa634da71c66dd5f594e65a3d9a1c8b58ea8e315fa07c1656444d563400c01 is restarting, wait until the container is running
ログは以下の通りです。
2019-07-25T12:47:52.505249Z 0 [Note] InnoDB: Completed initialization of buffer pool 2019-07-25T12:47:52.507607Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2019-07-25T12:47:52.519842Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 2019-07-25T12:47:52.521790Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 12465061 2019-07-25T12:47:52.521852Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 12465070 2019-07-25T12:47:52.521861Z 0 [Note] InnoDB: Database was not shutdown normally! 2019-07-25T12:47:52.521865Z 0 [Note] InnoDB: Starting crash recovery. 2019-07-25T12:47:52.638461Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2019-07-25T12:47:52.638571Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2019-07-25T12:47:52.638637Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2019-07-25T12:47:52.660105Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2019-07-25T12:47:52.660869Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2019-07-25T12:47:52.660923Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2019-07-25T12:47:52.661149Z 0 [Note] InnoDB: Waiting for purge to start 2019-07-25T12:47:52.711434Z 0 [Note] InnoDB: 5.7.27 started; log sequence number 12465070 2019-07-25T12:47:52.712181Z 0 [Note] Plugin 'FEDERATED' is disabled. 2019-07-25T12:47:52.757033Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool 2019-07-25T12:47:52.757808Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them. 2019-07-25T12:47:52.758161Z 0 [Warning] CA certificate ca.pem is self signed. 2019-07-25T12:47:52.793813Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190725 12:47:52 2019-07-25T12:47:52.794026Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 2019-07-25T12:47:52.794070Z 0 [Note] IPv6 is available. 2019-07-25T12:47:52.794086Z 0 [Note] - '::' resolves to '::'; 2019-07-25T12:47:52.794104Z 0 [Note] Server socket created on IP: '::'. 2019-07-25T12:47:52.808207Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory. 2019-07-25T12:47:52.815889Z 0 [Note] Event Scheduler: Loaded 0 events 2019-07-25T12:47:52.816169Z 0 [Note] mysqld: ready for connections. Version: '5.7.27' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL) Updating CA certificates Starting platform ./docker-entry.sh: line 18: /mm/mattermost/bin/mattermost: No such file or directory
どなたかご教示いただければ幸いです。
そのコンテナはよく知りませんが、そもそもbash入ってるんですか?
(/bin/shならいけそうな気はしますが)
ご回答いただきありがとうございます。
docker exec -it mattermost /bin/bash
とすると、
Error response from daemon: Container 4efa634da71c66dd5f594e65a3d9a1c8b58ea8e315fa07c1656444d563400c01 is restarting, wait until the container is running
となってしまいます。
で、bashは入ってるんですか?
遅れて申し訳ございません。
入っています。
回答2件
あなたの回答
tips
プレビュー