I want to deploy a simply docker container to my Kubernetes cluster. I'm on Docker for Mac (Edge mode since that's what supports Kubernetes), and I don't know how to push my image to my Google Cloud Container Registry.
Following the docs, I run:
docker stack deploy --compose-file ./docker-compose.yml my-app
and I get this in return:
Ignoring unsupported options: build
this node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again
And here is my docker-compose.yml:
version: '3'
services:
web:
build: ./
environment:
FLASK_APP: myApp
FLASK_ENV: development
command: flask run --host=0.0.0.0
ports:
- "9090:5000"
volumes:
- ./app:/app
volumes:
data:
driver: local
What am I doing wrong?
docker stack lsreturn? - jaxxstorm