containerport

v0.1.0
io.github.CloudCorpRecords/containerport Checked 51 minutes ago Published 1 month ago

Run core Docker container operations: list, run, inspect, logs, images and volumes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_containers

List Docker containers, optionally including stopped ones.

ParameterTypeDescription
allbooleanWhen true, include stopped containers as well as running ones.

inspect_container

Return the full inspect document for one Docker container.

ParameterTypeDescription
container_id *stringID or name of the container to inspect.

run_container

Run a new Docker container in detached mode from an image.

ParameterTypeDescription
image *stringImage to run the new container from, such as a name with an optional tag.
commandstringCommand to run inside the container, executed via the container's sh -c.
envarrayEnvironment variables to set in the container, each in KEY=VALUE form, passed to docker run -e.
namestringName to assign to the new container.
portsarrayPort mappings to publish, each in host:container form, passed to docker run -p.

start_container

Start a stopped Docker container.

ParameterTypeDescription
container_id *stringID or name of the stopped container to start.

stop_container

Stop a running Docker container.

ParameterTypeDescription
container_id *stringID or name of the running container to stop.

remove_container

Remove a Docker container, optionally forcing removal.

ParameterTypeDescription
container_id *stringID or name of the container to remove.
forcebooleanWhen true, force removal even if the container is running.

list_images

List Docker images present on the host.

pull_image

Pull a Docker image from its registry.

ParameterTypeDescription
image *stringImage to pull from its registry, such as a name with an optional tag.

get_container_logs

Fetch recent log output from a Docker container.

ParameterTypeDescription
container_id *stringID or name of the container to fetch logs from.
tailnumberNumber of lines to return from the end of the log output.

list_volumes

List Docker volumes on the host.