Command Reference
Below are the core commands available in Instantly.run for managing your Docker containers.
Create or Update a Container
docker run --context=instantly --name <container-name> --domainname <domain-name> \
-e <ENV_VAR>=<value> -p <port-mapping> -v <volume-mapping>
- Purpose: Creates a new container or updates an existing one if the same
--name
is used. - Dynamic Updates: Modify volumes, environment variables, or other configurations by re-executing the command with updated parameters.
- Example:
docker run --context=instantly --name my-container --domainname app.example.com \ -e MY_ENV=production -p 8080:80 -v data:/app/data
List Containers
docker run --context=instantly ps
- Purpose: Displays a list of containers managed under your Instantly.run context.
- Example:
docker run --context=instantly ps
Stop a Container
docker run --context=instantly stop <container-name>
- Purpose: Stops a running container.
- Example:
docker run --context=instantly stop my-container
Start a Container
docker run --context=instantly start <container-name>
- Purpose: Starts a stopped container.
- Example:
docker run --context=instantly start my-container
Restart a Container
docker run --context=instantly restart <container-name>
- Purpose: Restarts a container.
- Example:
docker run --context=instantly restart my-container
For further assistance or to see practical examples, check out the Examples Section.