0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker-compose up -d 実行したらSSL errorで起動しなかったのでTLS_VERSIONを指定した

Last updated at Posted at 2019-04-28

実行環境

windows7 64bit
virtualbox 5.0.24
Docker version 18.01.0-ce
docker-compose version 1.18.0
docker-machine.exe version 0.13.0

現象

いつものように仮想マシンを作って、コンテナを立ち上げようとしたときにエラーが発生。
$ docker-machine create machine_name--driver virtualbox
$ eval $(docker-machine env machine_name)
$ docker-compose up -d

SSL error: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661)

原因・対応

docker-composeはデフォルトでTLSv1が使われるがサポートされなくなったためエラーになっている様子。
TLSv1_2を使うように .env に以下を追記。
COMPOSE_TLS_VERSION=TLSv1_2

設定を反映させて再度実行
$ eval $(docker-machine env machine_name)
$ docker-compose up -d

無事起動できた!

引用
Git hub: docker-compose issues
https://github.com/docker/compose/issues/4651

docker docs: Compose CLI environment variables
https://docs.docker.com/compose/reference/envvars/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?