Files
2026-09-13 20:35:30 -07:00

633 B

Docker Commands

Entering a Container

To enter a container:

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:

#/ exit

Nextcloud stuff

docker exec -u www-data nextcloud-aio-nextcloud php /var/www/html/[occ command]