July 2017
Intermediate to advanced
374 pages
8h
English
Now that we have set up the Docker Swarm, it's time to run some services on top of it, say, the nginx service. Execute the following command on the master Docker machine to start your nginx service on port 80:
$ docker service create --detach=false -p 80:80 --name webservernginx
The output of the preceding command should be similar to the following screenshot:

Let's use the following Docker command to see if our service is running or not:
$ docker service ps webserver
The output of preceding command should be similar to the following screenshot:
A few other commands to validate are as follows:
To validate which ...
Read now
Unlock full access