# 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] ```