Manual Updates & Restarting

Manual Updates & Restarting

Your Fleetshare Docker setup uses Watchtower to automatically keep the fleetshare-client container updated to the latest version. However, if you need to manually trigger an update or restart the container for troubleshooting, you can use the following Docker commands.

Manually Restarting the Container

If Fleetshare seems unresponsive or you want to apply configuration changes immediately (though Watchtower often handles restarts after updates), you can restart the container:

sudo docker restart fleetshare-client

Manually Updating the Container

While Watchtower handles updates automatically every 60 seconds, you can force an update check and pull the latest image manually if needed.

  1. Pull the latest image:

    sudo docker pull earnfm/fleetshare:latest
  2. Stop and remove the existing container: (Watchtower might do this automatically shortly after the image pull, but doing it manually ensures it happens immediately)

    sudo docker stop fleetshare-client
    sudo docker rm fleetshare-client
  3. Restart the container using the original run command: Ensure you are in the directory containing your config.json file.

    sudo docker run -d --name fleetshare-client --restart=always --network host -v "$(pwd)/config.json:/app/config.json" earnfm/fleetshare:latest

    Note: The long command provided in the Installation guide also includes steps to update Watchtower itself and clean up old images, which might be preferable for a full manual refresh.

Checking Container Status

To see if the fleetshare-client and watchtower containers are running:

sudo docker ps

This command lists all running containers. You should see entries for fleetshare-client and watchtower.