Articles → DOCKER → Docker Service Create Command

Docker Service Create Command






Purpose





Prerequisite





Create Virtual Machines




Picture showing the 3 virtual machines created in Azure



Creation Of Docker Swarm





Execute The Docker Service Create Command




docker service create --name nginx nginx




Picture showing creating the service using the docker service create command






ps aux | grep nginx


Picture showing nginx installed on worker node one


Picture showing nginx installed on worker node two



Remove Service




docker service rm [service_name]



Docker Service Scale Command




docker service scale nginx=10







Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, January 2, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250