WHAT TO EXPECT
In this section, users will find helpful Docker commands used during cloudSwXtch, swXtchBridge, and Licensing Server installations and upgrades.
docker ps
This command will list all the Docker containers currently running on your machine.
docker psExample Output:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4a6499471644 ghcr.io/swxtchio/swx-license-server:latest "/swxtch/swxtch-lice…" 11 minutes ago Up 11 minutes 0.0.0.0:8081->8081/tcp, :::8081->8081/tcp swx-license-serverContainer ID
Using
docker pswill list all the container IDs found on your machine. You will use these for other commands in this article.
docker logs
This command will list the logs related to a container.
docker logs <Container-ID> -fExample:
$ docker logs 4a6499471644 -fdocker stop
This command stops the Docker service on your machine.
docker stop <Container-ID>Example:
$ docker stop 4a6499471644
4a6499471644WARNING
If you plan on restarting the same container, it is important that you record the Container ID. A stopped container will not appear when you do a
docker ps.
docker start
This command starts the Docker service on your machine.
$ docker start <Container-ID>Example:
$ docker start 4a6499471644
4a6499471644Example Output:
.png?sv=2022-11-02&spr=https&st=2025-11-03T08%3A04%3A41Z&se=2025-11-03T08%3A15%3A41Z&sr=c&sp=r&sig=20qPLuAEcGefhz7df5%2B1QwypuHL6erhivkvRQF4LbXI%3D)
docker remove
This command will remove the Docker service from your machine.
$ docker rm <Container-ID>Example:
$ docker rm 4a6499471644
4a6499471644