Last active
June 19, 2018 03:25
-
-
Save ajeetraina/c2183611fef699caf0ac536b77c0c5d6 to your computer and use it in GitHub Desktop.
Docker Compose v3.6 for Swarm & Kubernetes - Issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Captains-Bay]🚩 > cat docker-compose.yml | |
version: '3.6' | |
services: | |
web1: | |
image: nginx:alpine | |
ports: | |
- 8085:80 | |
db1: | |
image: nginx:alpine | |
[Captains-Bay]🚩 > docker version | |
Client: | |
Version: 18.05.0-ce | |
API version: 1.37 | |
Go version: go1.9.5 | |
Git commit: f150324 | |
Built: Wed May 9 22:12:05 2018 | |
OS/Arch: darwin/amd64 | |
Experimental: true | |
Orchestrator: swarm | |
Server: | |
Engine: | |
Version: 18.05.0-ce | |
API version: 1.37 (minimum version 1.12) | |
Go version: go1.10.1 | |
Git commit: f150324 | |
Built: Wed May 9 22:20:16 2018 | |
OS/Arch: linux/amd64 | |
Experimental: true | |
[Captains-Bay]🚩 > docker stack deploy -c docker-compose.yml mytry | |
Creating network mytry_default | |
Creating service mytry_db1 | |
Creating service mytry_web1 | |
[Captains-Bay]🚩 > docker service ls | |
ID NAME MODE REPLICAS IMAGE PORTS | |
ualf5i0le078 mytry_db1 replicated 0/1 nginx:alpine | |
i5l3adg46ioi mytry_web1 replicated 0/1 nginx:alpine *:8084->80/tcp | |
[Captains-Bay]🚩 > clear | |
[Captains-Bay]🚩 > docker version | |
Client: | |
Version: 18.05.0-ce | |
API version: 1.37 | |
Go version: go1.9.5 | |
Git commit: f150324 | |
Built: Wed May 9 22:12:05 2018 | |
OS/Arch: darwin/amd64 | |
Experimental: true | |
Orchestrator: kubernetes | |
Server: | |
Engine: | |
Version: 18.05.0-ce | |
API version: 1.37 (minimum version 1.12) | |
Go version: go1.10.1 | |
Git commit: f150324 | |
Built: Wed May 9 22:20:16 2018 | |
OS/Arch: linux/amd64 | |
Experimental: true | |
Kubernetes: | |
Version: v1.10.3 | |
StackAPI: v1beta1 | |
[Captains-Bay]🚩 > | |
[Captains-Bay]🚩 > docker stack deploy -c docker-compose.yml myapp10 | |
Stack.compose.docker.com "myapp10" is invalid: myapp10: Invalid value: "null": parsing error: unsupported Compose file version: 3.6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment