Connect an existing server
Bring a server you already run under Serversinc management. Your workloads keep running and your provider billing doesn't change.
Before you connect
Section titled “Before you connect”You need:
- A server running Ubuntu. The installer uses Docker’s Ubuntu packages, so other distributions aren’t supported.
- SSH access to the server as
root. - Outbound HTTPS access from the server to
api.serversinc.ioandget.serversinc.io. - A list of what already uses Docker, ports 80 and 443, or host paths you plan to mount into applications. If the server already runs Traefik without the Docker provider, the script reconfigures it. Check your existing routes after you connect.
Connecting isn’t a migration. Processes that already run keep running. Check the server’s Docker and network setup before you let Serversinc run new workloads beside them.
What the command does
Section titled “What the command does”The dashboard gives you a one-time command like this:
curl -sSL https://get.serversinc.io/install.sh | bash -s -- --token <token> --core https://api.serversinc.ioYou can read the script before you run it. It:
- Installs
jqif it’s missing. - Shows the server details it collected and asks you to confirm them.
- Registers the server with Serversinc using the token.
- Adds the Serversinc SSH key to
root’sauthorized_keys. - Installs Docker if it’s missing.
- Starts Traefik if there’s no Traefik container. If a Traefik container exists but doesn’t use the Docker provider, the script reconfigures it.
- Writes the agent config and starts the agent container, named
agent.
Connect the server
Section titled “Connect the server”-
Open Servers and select Connect server.
-
SSH into the server as
rootin a separate terminal. -
Copy the command and run it on the server.
-
Type
ywhen the script asks you to confirm the server details. -
Wait for
Setup complete!, then select I have run this script in the dashboard. -
Keep the waiting screen open. When the agent sends its first report, Serversinc opens the new server page.
The agent updates itself after this. You don’t need to install or upgrade it by hand.
If the script stops
Section titled “If the script stops”The script stops at the first step that fails. Read the last lines of its output.
If it prints Error: failed to receive SSH key from Core, the server did not
register. Check that the server can reach api.serversinc.io, then select
Connect server again to get a new command. The token may have expired.
Check the connection
Section titled “Check the connection”On the server page, check that:
- The status is Active.
- The address and resources are correct.
- The Metrics tab is receiving data.
- Containers that already ran on the server appear under Containers.
The inventory can take a few reports to fill in.
You can rename the server at any time under Server → Settings.
When a server stops reporting
Section titled “When a server stops reporting”Check each step between the server and Serversinc:
- Check that the server is running and you can reach it over SSH.
- Check that the server can reach
api.serversinc.ioover HTTPS. - Check that Docker and the agent are running:
docker ps --filter name=agent. - Read the agent’s logs:
docker logs agent. - Compare the last reported state, metrics, and command history in the dashboard.
Don’t reconnect a server only because its status is stale. Find why it stopped reporting first, so you don’t create a duplicate server or disturb running workloads.