Closed amarbajric closed 6 years ago
Everything worked as expected except docker-compose.yml
- in my case only version: '2'
worked well. Imo a downgrade to version 2 should not be an issue. Can you verify that?
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
I'm running the following version.
>> docker version
Client:
Version: 1.13.1
API version: 1.26
Go version: go1.8.3
Git commit: 092cba3
Built: Thu Oct 12 22:34:44 2017
OS/Arch: linux/amd64```
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Go version: go1.8.3
Git commit: 092cba3
Built: Thu Oct 12 22:34:44 2017
OS/Arch: linux/amd64
Experimental: false
>> docker-compose version
docker-compose version 1.8.0, build unknown
docker-py version: 1.9.0
CPython version: 2.7.14
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
I would suggest you to upgrade docker
or at least docker-compose
as the newest compose file format is 3.6
. Here is a link for upgrading compose only: https://github.com/docker/compose/releases
Below you can find my versions of docker
and docker-compose
Suggestion:
Try updating docker-compose
and/or docker
itself
Alternatively we can downgrade to version: 2
which i would not recommend however. But it is an option if the upgrade does not work.
resolves #4
Done:
Dockerfile
for creating custom image and includingDB_setup.sql
fileDB_setup.sql
fileDB_setup.sql
file automaticallydocker-compose.yml
file to automatically build image and set-up mysql docker containerToDo:
cd
into the/Setup/mysql_docker
directorydocker-compose up
(ordocker-compose up -d
to truncate output) in your terminal