Overview
Container Kit provides a comprehensive interface for managing Apple containers on macOS. This guide covers all container lifecycle operations from creation to removal.Understanding Containers
Containers are isolated environments that run applications with their own filesystem, network, and process space. Container Kit manages these using Apple’s native containerization system.Container States
Containers can be in one of several states:- Created - Container exists but hasn’t been started
- Running - Container is actively running
- Stopped - Container was running but has been stopped
- Paused - Container processes are paused (not yet supported)
- Exited - Container finished execution
Viewing Containers
List All Containers
View all containers (running and stopped) in the Containers tab:- Container ID - Unique identifier
- Name - Human-readable name
- Image - Source image
- Status - Current state (Running, Stopped, etc.)
- Created - When the container was created
- Ports - Exposed port mappings
Creating Containers
Create a new container from an image.Configure Container
Fill in the container configuration:
- Container Name - A unique name for your container
- Image - Select from pulled images or enter image:tag
- Port Mapping - Map container ports to host ports
- Environment Variables - Set environment variables
- Volumes - Mount host directories into the container
- Network - Select the network configuration
Quick Create from Image
You can also create containers directly from the Images tab:- Navigate to Images
- Click the ⋮ menu on an image
- Select Create Container
- Configure and create
Starting Containers
Start a stopped container to run it.Stopping Containers
Stop a running container gracefully.Stopping a container preserves its state. You can restart it later with the same configuration and data.
Inspecting Containers
View detailed information about a container.Viewing Container Logs
View output and logs from a container.View Output
The logs panel shows:
- stdout - Standard output from the container
- stderr - Error output
- Timestamps - When each log entry was created
Removing Containers
Delete a container permanently.Stop the Container
You must stop a container before removing it. Select the running container and click Stop.
Removing Multiple Containers
Remove several containers at once:- Select containers using checkboxes
- Click Bulk Actions > Remove
- Confirm the batch removal
Container Terminal Access
Execute commands inside a running container (coming soon).Container terminal access is planned for a future release. Currently, you can use the system terminal with the
container CLI directly.Container Statistics
View resource usage for running containers (coming soon).Real-time container statistics will be available in a future release, showing CPU, memory, network, and disk I/O usage.
Advanced Operations
Restart Containers
Restart a container (stop and start in one operation):Rename Containers
Change a container’s name:Container Commit
Create a new image from a container’s changes:Best Practices
Use meaningful names
Use meaningful names
Name containers descriptively:✅ Good:
webapp-prod, mysql-dev, redis-cache❌ Bad: container1, test, tempClear names make it easier to identify containers at a glance.Clean up unused containers
Clean up unused containers
Regularly remove stopped containers to free up disk space:
- Review stopped containers weekly
- Remove containers you no longer need
- Use bulk removal for efficiency
Monitor container logs
Monitor container logs
Check logs regularly for:
- Application errors
- Performance issues
- Security warnings
- Unexpected behavior
Use volumes for persistent data
Use volumes for persistent data
Store important data in volumes, not in the container filesystem:
- Database data
- User uploads
- Configuration files
- Application state
Troubleshooting
Container won't start
Container won't start
If a container fails to start:
- Check the container logs for error messages
- Inspect the container configuration
- Verify the image exists and is valid
- Check for port conflicts with other containers
- Ensure sufficient system resources (memory, CPU)
- Port already in use
- Invalid configuration
- Missing dependencies
- Insufficient permissions
Container keeps stopping
Container keeps stopping
If a container stops unexpectedly:
- View logs to see why the application exited
- Check the exit code in container details
- Verify the container command is correct
- Ensure the application stays in the foreground
Can't remove container
Can't remove container
If you can’t remove a container:
- Ensure the container is stopped first
- Check if the container is in use by another process
- Try force removal:
container rm -f <container-id> - Restart the containerization service if needed
Next Steps
Image Management
Learn how to manage container images
Networking
Configure container networks and connectivity
Troubleshooting
Solve common container issues
Technical Reference
Explore the Container Kit API