mirror of
https://github.com/docker/docs.git
synced 2026-04-01 16:58:54 +07:00
In the code sample mentioned in `Start a service with volumes` it says > The following example starts a nginx service with four replicas, each of which uses a local volume called myvol2. But --replicas=4 is missing from the code sample which reads: ``` $ docker service create -d \ --name devtest-service \ --mount source=myvol2,target=/app \ nginx:latest ``` Instead of this it rather should be: ``` $ docker service create -d \ --replicas=4 \ --name devtest-service \ --mount source=myvol2,target=/app \ nginx:latest ```