1. 添加目录映射 C:Program FilesDocker Toolboxdocker.exe: Error response from daemon: invalid mode: /var/log/mysql.
$ docker run -d -v D:/docker/lnmp/log/mysql:/var/log/mysql -v D:/docker/lnmp/conf/mysql:/etc/mysql/conf.d -p 3306:3306-e MYSQL_ROOT_PASSWORD=root --name mysql56 mysql:5.6
time="2019-01-09T09:45:24+08:00" level=warning msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"
C:Program FilesDocker Toolboxdocker.exe: Error response from daemon: invalid mode: /var/log/mysql.
See 'C:Program FilesDocker Toolboxdocker.exe run --help'.
由于windows和lunix系统目录表达方式不同导致的。只需要更改成像lunix的目录结构即可:
docker run -d -v /D/docker/lnmp/log/mysql:/var/log/mysql -v /D/docker/lnmp/conf/mysql:/etc/mysql/conf.d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root --name mysql56 mysql:5.6
详见 https://github.com/docker/toolbox/issues/607
2. docker-compose : ERROR: SSL error: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661)
需要在.env文件中添加 COMPOSE_TLS_VERSION=TLSv1_2
即可