Quick Start¶
Get up and running with Docker Pilot in just a few minutes!
Before You Start¶
Make sure you have:
- โ Docker Pilot installed (Installation Guide)
- โ Docker and Docker Compose running
- โ A Docker Compose project ready
Your First Docker Pilot Experience¶
Step 1: Navigate to Your Project¶
Your project should have a docker-compose.yml
file:
# Example docker-compose.yml
version: '3.8'
services:
web:
build: .
ports:
- "8080:80"
database:
image: postgres:13
environment:
POSTGRES_DB: myapp
POSTGRES_USER: user
POSTGRES_PASSWORD: password
Step 2: Start Docker Pilot¶
On first run, you'll see:
๐ Welcome to Docker Pilot!
Please choose your language / Por favor, escolha seu idioma:
1. English
2. Portuguรชs (Brasil)
Select option / Selecione a opรงรฃo (1-2):
Choose your preferred language by typing 1
or 2
.
Step 3: Explore the Interactive Menu¶
After language selection, you'll see the main menu:
============================================================
๐ณ Welcome to MyApp Docker Pilot v2.0! ๐ณ
============================================================
๐ Directory: /path/to/your/project
๐ง Services: web, database
====================================
๐ Basic Commands
====================================
1. Quick setup (detect services)
2. Start all services
3. Stop all services
4. Restart all services
5. Rebuild and start all services
6. View logs of all services
7. View services status
====================================
๐ ๏ธ Advanced Commands
====================================
8. Open shell in service
9. Check services health
10. Monitor in real time
11. Update all images
====================================
โ๏ธ Maintenance
====================================
12. Clean unused resources
13. Deep clean
14. Show configuration
15. Advanced settings
0. Exit
Choose your option:
Step 4: Try Some Basic Operations¶
Let's try the most common operations:
Start All Services¶
Type 2
to start all services:
๐ Executing: Start all services
================================
โ
Starting services...
โ
Services started successfully!
Service Status:
โโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ Service โ Status โ Health โ Ports โ
โโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
โ web โ running โ healthy โ 0.0.0.0:8080 โ
โ database โ running โ healthy โ 5432/tcp โ
โโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
Press Enter to continue...
View Service Status¶
Type 7
to check service status:
๐ Executing: View services status
==================================
๐ Current Service Status:
โ
web
Status: running
Health: healthy
Uptime: 2 minutes
Ports: 0.0.0.0:8080->80/tcp
โ
database
Status: running
Health: healthy
Uptime: 2 minutes
Ports: 5432/tcp
All services are running healthy! ๐
View Logs¶
Type 6
to view logs:
๐ Executing: View logs of all services
=======================================
๐ก Press Ctrl+C to stop viewing logs
web_1 | Server started on port 80
database_1 | PostgreSQL init process complete; ready for start up.
database_1 | database system is ready to accept connections
web_1 | GET / 200 - - 15 ms
CLI Mode (Alternative)¶
You can also use Docker Pilot in CLI mode without the interactive menu:
# Start all services
docker-pilot up
# Check status
docker-pilot status
# View logs
docker-pilot logs --follow
# Stop all services
docker-pilot down
# Open shell in web service
docker-pilot shell web
# Scale services
docker-pilot scale web=3 database=1
Common First Steps¶
Here are the most common things you'll want to do:
1. Quick Setup¶
If this is your first time in a project:
- Choose option
1
(Quick setup) - Docker Pilot will detect your services automatically
- It will create a configuration file for faster subsequent runs
2. Development Workflow¶
For daily development:
# Start everything
docker-pilot up
# View logs while developing
docker-pilot logs --follow
# Open shell for debugging
docker-pilot shell web
# Restart after code changes
docker-pilot restart web
# Stop everything when done
docker-pilot down
3. Monitor Services¶
To keep an eye on your services:
- Choose option
10
(Monitor in real time) - See live updates of service status
- Press Ctrl+C to stop monitoring
Configuration¶
Docker Pilot creates a docker-pilot.config.json
file in your project:
{
"projectName": "myapp",
"dockerCompose": "docker compose",
"language": "en",
"services": {
"web": {
"port": 8080,
"healthCheck": true
},
"database": {
"port": 5432,
"healthCheck": true
}
}
}
This configuration is automatically generated and can be customized.
What's Next?¶
Now that you've got the basics down:
- ๐ Learn about Configuration options
- ๐ฏ Explore CLI Usage in detail
- ๐ฎ Master the Interactive Menu
- ๐ Set up Multi-language Support
- ๐ง Try Advanced Features
Need Help?¶
- ๐ Check the FAQ
- ๐ฌ Join our Discussions
- ๐ Report issues on GitHub
Congratulations!
You're now ready to use Docker Pilot! The interactive menu makes it easy to manage your Docker services, and the CLI provides powerful automation capabilities.