Creating a Docker Swarm Service

Length: 00:07:42

Lesson Summary:

Now that we have a swarm setup, we will go and create a swarm service.

docker volume create swarm-vol
docker service create --name [NAME] -p 8080:80 \
--replicas 2 --mount source=swarm-vol,destination=/usr/share/nginx/html \

This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More