Starting a Container on Boot - MyMoheS/mymohes-api GitHub Wiki

If you want Docker to automatically start the container when the Docker service starts (e.g., on system reboot), you can run the container with the command below

docker run --restart unless-stopped <image_name>

example:
docker run --restart unless-stopped uum_mymohes-api

This ensures that the container starts automatically when Docker restarts, as long as it wasn't manually stopped.

⚠️ **GitHub.com Fallback** ⚠️