Check container name
POST /api/v1/containers/check-name
POST
/api/v1/containers/check-name
Reports whether a container name is available, and if not, whether the existing container is Warden-managed.
Request Body required
Section titled “Request Body required ”Container name to check
Responses
Section titled “ Responses ”OK
object
available
Available is true when no container with this name exists.
boolean
managed
Managed is true when an existing container has the app.warden.managed label. When true, the user can choose to replace it via ForceReplace.
boolean
state
State is the Docker container state (running, exited, etc.) when a container exists with this name.
string
Bad Request
object
code
string
error
string
Service Unavailable
object
code
string
error
string