Overview
The m87 CLI provides seamless Docker integration, allowing you to run any Docker command on remote devices as if you were working locally. This includes full support for Docker Compose for deploying multi-container applications.Docker Command
Execute Docker commands on remote devices using Docker passthrough.Syntax
Prerequisites
Before using Docker commands:
- Docker must be installed on the remote device
- The device user must be in the
dockergroup or have root permissions - Docker daemon must be running
Container Management
List and Inspect Containers
Container Lifecycle
Bulk Operations
Image Management
Docker Compose
Deploy and manage multi-container applications with Docker Compose.Basic Compose Commands
Example: Simple Compose Project
Here’s a working example that demonstrates Docker Compose with m87:docker-compose.yml
Deploy Example
Advanced Docker Commands
Network Management
Volume Management
System Information
Real-World Workflows
Deploy Web Application
Database Backup
Development with Hot Reload
Container Debugging
Docker with Port Forwarding
Access containerized services locally:Troubleshooting
Check Docker Status
Permission Issues
Container Won’t Start
Performance Tips
Related Commands
- Deployments - Automated deployment management
- Device Access - Execute commands on devices
- Port Forwarding - Access container ports locally
- File Transfer - Sync application code to devices