I am new to the Docker world, I spent my vacation to find out this docker (however it is much more complicated than Vagrant). So I am using Ubuntu 16.04, I have successfully installed dockers and docker layout.
I read this lesson: Quick Start: docker and rail picker But that doesn't work ... maybe the lesson is wrong.
I have this docker-compose.yml:
db: image: postgres web: build: . command: bundle exec rails s -p 3000 -b '0.0.0.0' volumes: - .:/www/html ports: - "3000:3000" depends_on: - db
I always got this error:
$ docker-compose run web rails new . --force --database=postgresql --skip-bundle ERROR: Validation failed in file './docker-compose.yml', reason(s): Unsupported config option for 'web' service: 'depends_on'
Mmmm, ok, I read a lot of Google results, and it seems like I'm in focus, because I'm using Ubuntu. Unfortunately, the highest version of dockers in Ubuntu is only 1.5.2. (I tried downloading 1.7.1 with curl, but 1.5.2 was installed automatically.)
$ docker version Client: Version: 1.11.1 API version: 1.23 Go version: go1.5.4 Git commit: 5604cbe Built: Tue Apr 26 23:43:49 2016 OS/Arch: linux/amd64 Server: Version: 1.11.1 API version: 1.23 Go version: go1.5.4 Git commit: 5604cbe Built: Tue Apr 26 23:43:49 2016 OS/Arch: linux/amd64
Do you have any ideas how I can run rail-based dockers? I cannot install the docker machine because I use ubuntu and the installation will always fail.
However, my PHP docker-compose.yml is fine, because I can run it: light_smile: But this rail tutorial is not very good.
source share