swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

When the restart policy is set to on failure, the restart container will fail with port mapping

Open ktpktr0 opened this issue 4 years ago • 0 comments

When I use swarm to deploy a service and set up multiple copies. Port mapping fails when the container is restarted

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
  scan: Docker Scan (Docker Inc., v0.8.0)

Server:
 Containers: 5
  Running: 5
  Paused: 0
  Stopped: 0
 Images: 5
 Server Version: 20.10.7
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs

ktpktr0 avatar Jul 01 '21 11:07 ktpktr0