The Commands
This lesson lists all the relevant Docker stack commands with brief reminders of what each one does.
We'll cover the following
The summary of commands for Deploying Applications with Docker Stacks
docker stack deploy
is the command you’ll run to deploy and update stacks. You need to specify the name of the stack and the stack file. Docker expects the stack file to be called compose.yaml by default.docker stack ls
lists all stacks on a swarm and shows the number of services each one has.
Get hands-on with 1300+ tech skills courses.