HARBOR USER GUIDE

Docker containers

List the Docker containers on any saved server and open a shell in one in a new tab.

Docker containers

The Docker connector lists the containers on any saved server over SSH, and opens a shell in a running one in a new tab. Nothing is installed on the server, and the Docker API is never exposed over the network.

Use it

  1. Open Connectors › Cloud & infrastructure › Docker.
  2. Choose a Server. Harbor connects in the background and runs docker ps.
  3. The list shows each container’s name, image, state and ports.
  4. Click Shell next to a running container to open a shell in it in a new tab.

The shell is bash when the container has it, otherwise sh (docker exec -it <container> …).

Permissions

Your login user needs to be able to run docker: either be in the docker group, or be allowed to run sudo docker without a password. Harbor tries without sudo first, and uses sudo only when Docker needs it and allows it without asking.

The host’s key must already be trusted (connect once in a terminal), since the listing uses a background connection.

Notes

  • Container shells are terminal tabs without Blocks mode.
  • Exiting the shell (exit or Ctrl+D) closes the tab’s session; the container keeps running.
  • Being able to run docker on a server is effectively root access to it. Treat these hosts with the same care as root logins.