Networks
Create, inspect, and manage Docker networks across connected VPS servers.
Networks in tug.sh map directly to Docker networks on each connected VPS.
Why networks matter
Use networks to:
- isolate traffic between services,
- connect app and database containers privately,
- keep only selected ports exposed publicly.
Create a network
- Open Networks in the dashboard.
- Click New network.
- Select the target VPS.
- Enter a network name (for example
app-network). - Confirm creation.
tug.sh sends the request to the Agent, and the Agent creates the network on that VPS.
Inspect network usage
The Networks table shows:
- network name,
- VPS where the network exists,
- containers currently attached to that network.
This makes it easy to verify which services share the same internal layer.
Delete a network safely
You can remove a network only when no active containers depend on it.
Recommended sequence:
- Stop or reconfigure attached containers.
- Detach them from the network.
- Delete the network from Networks.
Best practices
- Use one dedicated app network per project.
- Keep database containers on private networks.
- Expose only ingress containers (for example TugRouter or reverse proxies).