Version: 2.0.2
Managing User Containers from the Terminal
In OpenPanel, each user has their own Docker context running in rootless mode. If you are familiar with Docker, you can manage a user’s files and services directly from the terminal.
SSH access as the root user on the server is required to switch between Docker contexts.
Compose Setup
Each user’s environment is based on:
docker-compose.yml– defines services, networks, and volumes..env– defines CPU/memory limits, Docker image tags, and custom ports.
⚠️ Always edit these files via the OpenAdmin interface. The interface validates your changes. Editing directly from the terminal bypasses validation and can break services. Make a backup before any modifications.
File Structure
Each user’s home directory is located at:
/home/USERNAME/
It contains configuration files and user data. Example structure:
├── .env # Environment variables: versions, ports, CPU/memory limits
├── backup.env # Backup configuration
├── crons.ini # Cron jobs
├── custom.cnf # MySQL configuration
├── default.vcl # Varnish cache configuration
├── docker-compose.yml # Service definitions
├── docker-data # Docker storage
│ ├── containerd # Container runtime data
│ ├── containers # Individual container data
│ ├── image # Docker images
│ ├── network # Docker networks
│ ├── overlay2 # Overlay filesystem storage
│ ├── plugins # Docker plugins
│ └── volumes # Persistent data volumes
│ ├── <USERNAME>_html_data # Website files (/var/www/html/)
│ └── <USERNAME>_mysql_data # MySQL database files (/var/lib/mysql/)