1. Command method Run the nginx service in the created Swarm cluster and use the --replicas parameter to specify the number of replicas to start. docker service create --replicas 3 -p 80:80 --name nginx nginx:latest or docker service create -p 80:80 --name nginx nginx:latest docker service scale nginx=3 docker service ls #View the copy status 2. Portainer method You can use portainer to create a service on the web interface and specify the number of replicas. You can also dynamically increase or decrease the number of replicas at any time. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: MySQL Community Server 8.0.12 installation and configuration method graphic tutorial
>>: Vue element implements table adding, deleting and modifying data
Table of contents Use two-way binding data in v-m...
Sometimes the input box is small, and you want to...
I haven’t updated my blog for several days. I jus...
1. Replication Principle The master server writes...
Events can specify the execution of SQL code once...
I am using LDAP user management implemented in Ce...
Why doesn't your height:100% work? This knowl...
The database enables slow query logs Modify the c...
Table of contents Preface 1. Basic Environment 1....
First, let's take a look at the relative leng...
Recently I need to change the version of MySQL da...
<br />This is from the content of Web front-...
If you have installed the Win10 system and want t...
I don't expect to be an expert DBA, but when ...
1. Front-end-led implementation steps The first s...