Specify how to stop containers with/without daemon flag

joshmcorreia
2024-06-06 11:46:39 -07:00
parent 02a486001f
commit 81d4bd8ddc

@ -71,8 +71,7 @@ The whole application will be available after a few minutes (check with `docker
Open the URL `http://0.0.0.0:8000/` in a web-browser. Open the URL `http://0.0.0.0:8000/` in a web-browser.
You should see the NetBox homepage. You should see the NetBox homepage.
To create the first admin user run this command: To create the first admin user run this command in a separate terminal:
```bash ```bash
docker compose exec netbox /opt/netbox/netbox/manage.py createsuperuser docker compose exec netbox /opt/netbox/netbox/manage.py createsuperuser
``` ```
@ -82,7 +81,9 @@ docker compose exec netbox /opt/netbox/netbox/manage.py createsuperuser
## Shutdown ## Shutdown
If you want to just stop NetBox to continue work later on, use the following command. To stop NetBox press <kbd>Ctrl</kbd>+<kbd>C</kbd> in the same terminal that you ran `docker compose up` in.
If you started the container with `docker compose up -d` then use the following command to stop the container:
```bash ```bash
# Stop all the containers # Stop all the containers