Estimated reading time: 17 minutesYou are viewing docs for legacy standalone Swarm. These topics describe standalone Docker Swarm. If you use Docker 1.12 or higher, Swarm mode is integrated with Docker Engine. Most users should use integrated Swarm mode — a good place to start is Getting started with swarm mode and Swarm mode CLI commands. Standalone Docker Swarm is not integrated into the Docker Engine API and CLI commands.
Docker Engine provides a REST API for making calls to the Engine daemon. Docker Swarm allows a caller to make the same calls to a cluster of Engine daemons. While the API calls are the same, the API response status codes do differ. This document explains the differences.
Four methods are included, and they are GET, POST, PUT and DELETE.
The comparison is based on api v1.22, and all Docker Status Codes in api v1.22 are referenced from docker-remote-api-v1.22.
/_ping
ping
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
500 |
/events
getEvents
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
400 | |
500 |
/info
getInfo
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
500 |
/version
getVersion
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
500 |
/images/json
getImagesJSON
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
500 | 500 |
/images/viz
notImplementedHandler
Swarm Status Code | Docker Status Code |
---|---|
501 | no this api |
/images/search
proxyRandom
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
500 | 500 |
/images/get
getImages
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | |
500 | 500 |
/images/{name:.*}/get
proxyImageGet
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | |
500 | 500 |
/images/{name:.*}/history
proxyImage
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/images/{name:.*}/json
proxyImage
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/containers/ps
getContainersJSON
Swarm Status Code | Docker Status Code |
---|---|
200 | no this api |
404 | no this api |
500 | no this api |
/containers/json
getContainersJSON
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
400 | |
404 | |
500 | 500 |
/containers/{name:.*}/archive
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
400 | 400 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/export
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/changes
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/json
getContainerJSON
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/top
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/logs
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
101 | 101 |
200 | 200 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/stats
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/attach/ws
proxyHijack
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
400 | 400 |
404 | 404 |
500 | 500 |
/exec/{execid:.*}/json
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/networks
getNetworks
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
400 | |
500 | 500 |
/networks/{networkid:.*}
getNetwork
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
/volumes
getVolumes
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
500 |
/volumes/{volumename:.*}
getVolume
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 |
/auth
proxyRandom
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
204 | 204 |
500 | 500 |
/commit
postCommit
Swarm Status Code | Docker Status Code |
---|---|
201 | 201 |
404 | 404 |
500 | 500 |
/build
postBuild
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
500 | 500 |
/images/create
postImagesCreate
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
500 | 500 |
/images/load
postImagesLoad
Swarm Status Code | Docker Status Code |
---|---|
200 | |
201 | |
500 |
/images/{name:.*}/push
proxyImagePush
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/images/{name:.*}/tag
postTagImage
Swarm Status Code | Docker Status Code |
---|---|
200 | |
201 | |
400 | |
404 | 404 |
409 | |
500 | 500 |
/containers/create
postContainersCreate
Swarm Status Code | Docker Status Code |
---|---|
201 | 201 |
400 | |
404 | |
406 | |
409 | |
500 | 500 |
/containers/{name:.*}/kill
proxyContainerAndForceRefresh
Swarm Status Code | Docker Status Code |
---|---|
204 | 204 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/pause
proxyContainerAndForceRefresh
Swarm Status Code | Docker Status Code |
---|---|
204 | 204 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/unpause
proxyContainerAndForceRefresh
Swarm Status Code | Docker Status Code |
---|---|
204 | 204 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/rename
postRenameContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | |
204 | |
404 | 404 |
409 | 409 |
500 | 500 |
/containers/{name:.*}/restart
proxyContainerAndForceRefresh
Swarm Status Code | Docker Status Code |
---|---|
204 | 204 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/start
postContainersStart
Swarm Status Code | Docker Status Code |
---|---|
204 | 204 |
304 | |
404 | 404 |
500 | 500 |
/containers/{name:.*}/stop
proxyContainerAndForceRefresh
Swarm Status Code | Docker Status Code |
---|---|
204 | 204 |
304 | 304 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/update
proxyContainerAndForceRefresh
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
400 | 400 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/wait
proxyContainerAndForceRefresh
Swarm Status Code | Docker Status Code |
---|---|
204 | 204 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/resize
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/attach
proxyHijack
Swarm Status Code | Docker Status Code |
---|---|
101 | 101 |
200 | 200 |
400 | 400 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/copy
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/containers/{name:.*}/exec
postContainersExec
Swarm Status Code | Docker Status Code |
---|---|
201 | 201 |
404 | 404 |
409 | |
500 | 500 |
/exec/{execid:.*}/start
postExecStart
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
409 | 409 |
500 |
/exec/{execid:.*}/resize
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
201 | 201 |
404 | 404 |
500 |
/networks/create
postNetworksCreate
Swarm Status Code | Docker Status Code |
---|---|
200 | |
201 | |
400 | |
404 | |
500 | 500 |
/networks/{networkid:.*}/connect
proxyNetworkConnect
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/networks/{networkid:.*}/disconnect
proxyNetworkDisconnect
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
500 | 500 |
/volumes/create
postVolumesCreate
Swarm Status Code | Docker Status Code |
---|---|
200 | |
201 | |
400 | |
500 | 500 |
/containers/{name:.*}/archive"
proxyContainer
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
400 | 400 |
403 | 403 |
404 | 404 |
500 | 500 |
/containers/{name:.*}
deleteContainers
Swarm Status Code | Docker Status Code |
---|---|
200 | |
204 | |
400 | |
404 | 404 |
500 | 500 |
/images/{name:.*}
deleteImages
Swarm Status Code | Docker Status Code |
---|---|
200 | 200 |
404 | 404 |
409 | |
500 | 500 |
/networks/{networkid:.*}
deleteNetworks
Swarm Status Code | Docker Status Code |
---|---|
200 | |
204 | |
404 | 404 |
500 | 500 |
/volumes/{name:.*}"
deleteVolumes
Swarm Status Code | Docker Status Code |
---|---|
204 | 204 |
404 | 404 |
409 | |
500 | 500 |