Dockerを使用してMySQL 5.7を起動し、外部からの接続を許可する方法を簡単に学びましょう。開発やテスト環境に最適なこの手順を、ステップバイステップで詳細に解説します。
docker
![](https://sumito.jp/wp-content/uploads/2018/08/68046e3b6a911bd5d374f971004913f8.png)
docker
M1 mac で Dockerを使ってMySQL 5.7を外部から接続できるように設定する
![no image no image](https://sumito.jp/wp-content/themes/godios-child/images/no-image-sl.png)
docker
aws cli コマンドを実行するとamazon/aws-cli コンテナが起動するようにする
aws cli コマンドを実行するとamazon/aws-cli コンテナが起動するようにする
![](https://sumito.jp/wp-content/uploads/2018/10/173886c9aa25500a3114be21a8541a1a-320x320.png)
docker
Baseimage-dockerとは
Baseimage-docker は supervisorなどのプロセスコントロールシステムを使って複数プロセス起動しているちょっと変わった 80M 程度の軽量なコンテナだ。
![](https://sumito.jp/wp-content/uploads/2018/10/173886c9aa25500a3114be21a8541a1a-320x320.png)
docker
error pulling image configuration: Get https://xxxx : net/http: TLS handshake timeout
docker pullした際、以下のような TLS handshake timeout が発生。その対処法をまとめる。
![](https://sumito.jp/wp-content/uploads/2018/08/68046e3b6a911bd5d374f971004913f8.png)
docker
コンテナ内の mysql にリクエストされたクエリを確認する
開発している際 コンテナの mysql にどのようなクエリ走ったのか確認したいことがある。スロークエリを 0秒に設定することで、DB にリクエストされた 全クエリを確認することができる。
![](https://sumito.jp/wp-content/uploads/2018/10/173886c9aa25500a3114be21a8541a1a-320x320.png)
docker
entrypoint の設定された docker の中に入る
概要docker では entrypoint が設定されていると、docker の中に入るために 起動シェルを変更したとしてもentrypoint の引数として認識されてしまう事がある。entrypoint を変更する事で、コンテナ内に入る事が可能になる。```
![](https://sumito.jp/wp-content/uploads/2019/07/ecs.png)
docker
Unable to obtain Outpost ARN from EC2 Metadata: EC2MetadataError: failed to make EC2Metadata request
Unable to obtain Outpost ARN from EC2 Metadata: EC2MetadataError: failed to make EC2Metadata request
![](https://sumito.jp/wp-content/uploads/2018/10/173886c9aa25500a3114be21a8541a1a-320x320.png)
docker
ERROR: Service ‘server’ failed to build: Error parsing reference: “node:10 as frontend-builder” is not a valid repository/tag: invalid reference format
git cloneしたリポジトリで docker build を行ったところ、 Error parsing reference: "xxxx" is not a valid repository/tag: invalid reference format というエラーが発生したので、原因と対策について記載する。
![](https://sumito.jp/wp-content/uploads/2018/10/173886c9aa25500a3114be21a8541a1a-320x320.png)
docker
【Docker】ストレージ容量不足時の対処法【解決済み】
dockerのbuildサーバでstorage不足に陥った。不要なファイルを削除する必要があるが、安全に容量を確保するコマンドがあるので紹介。
![](https://sumito.jp/wp-content/uploads/2018/10/173886c9aa25500a3114be21a8541a1a-320x320.png)
docker
standard_init_linux.go:190: exec user process caused “exec format error”
dockerで起動シェルを渡した際、 ``` standard_init_linux.go:190: exec user process caused "exec format error" ``` というエラーが発生した際の対処