Files
mind-palace/cli/containers.md
T
2026-09-13 20:35:12 -07:00

23 lines
632 B
Markdown

# Docker Commands
## Entering a Container
To enter a container:
```bash
docker exec -it [container name]
```
## Working inside a Container
Generally, once inside the container you can act the same as you would in any other terminal instance. However, containers are restricted by what has been natively integrated into the container. For example if you need to run a curl command you would need to ensure curl is installed, or use wget which is more common inside containers.
To exit the container:
```bash
#/ exit
```
## Nextcloud stuff
```docker exec -u www-data nextcloud-aio-nextcloud php /var/www/html/[occ command]
```