Skip to content
julien-infra-hostinger-docker logo

Hostinger Docker Management

julien-infra-hostinger-docker

Docker management for Hostinger VPS srv759970 - container operations, image optimization, WordPress Docker, troubleshooting. Use for any Docker operation, container issues, or image management.

SKILL.md

Full skill instructions

Hostinger Docker Management

Docker infrastructure for srv759970.hstgr.cloud (30+ containers).

Server Info

PropertyValue
Host[email protected]
Base path/​opt/
Containers30+ (ML apps, APIs, databases)

1. Status & Monitoring

Quick Status

ssh srv759970 'docker ps --format "table {{.Names}}\t{{.Status}}"'
ssh srv759970 'docker system df'

Container Stats

ssh srv759970 'docker stats --no-stream --format "table {{.Name}}\t{{.MemUsage}}\t{{.CPUPerc}}"'

Logs

ssh srv759970 'docker logs container-name --tail 50'
ssh srv759970 'docker logs -f container-name'  # Follow
ssh srv759970 'docker logs container-name --tail 100 --timestamps'

2. Container Operations

Start/​Stop/​Restart

ssh srv759970 'docker restart container-name'
ssh srv759970 'docker stop container-name'
ssh srv759970 'docker start container-name'

Deploy Service

ssh srv759970 << 'EOF'
cd /​opt/​service-name
docker-compose down
docker-compose up -d
docker-compose logs --tail 20
EOF

Force Recreate (for config changes)

ssh srv759970 'cd /​opt/​service && docker-compose down && docker-compose up -d --force-recreate'

Execute Command in Container

ssh srv759970 'docker exec -it container-name bash'
ssh srv759970 'docker exec container-name ls /​app'
ssh srv759970 'docker exec -u root container-name chown -R www-data:www-data /​var/​www/​html'

3. WordPress Docker

Containers

ContainerPortUsage
wordpress-site9xxxWordPress + PHP
mysql-site3306Database
wp-cli-site-WP-CLI commands

Common Commands

# Status
ssh srv759970 'docker ps | grep wordpress'

# Logs
ssh srv759970 'docker logs wordpress-site --tail 50'

# Restart
ssh srv759970 'cd /​opt/​wordpress-site && docker-compose restart'

# WP-CLI
ssh srv759970 'docker exec wp-cli-site wp plugin list'
ssh srv759970 'docker exec wp-cli-site wp user list'

# Fix permissions
ssh srv759970 'docker exec -u root wordpress-site chown -R www-data:www-data /​var/​www/​html'

4. Image Management

List Images

ssh srv759970 'docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"'

Cleanup

# Dangling images (safe)
ssh srv759970 'docker image prune -f'

# Old images (>30 days)
ssh srv759970 'docker image prune -a --filter "until=720h"'

# Unused volumes
ssh srv759970 'docker volume prune -f'

Build & Deploy

ssh srv759970 << 'EOF'
cd /​opt/​service
docker-compose build --no-cache
docker-compose up -d --force-recreate
docker image prune -f
EOF

5. Troubleshooting

ContainerConfig KeyError

docker-compose down && docker-compose up -d --force-recreate

Network has active endpoints

# Skip down, use only:
docker-compose up -d --force-recreate

Wrong CMD in container

docker-compose build --no-cache
docker-compose up -d

Container keeps restarting

# Check logs
docker logs container-name --tail 100

# Check exit code
docker inspect container-name | grep ExitCode

# Check memory limits
docker stats --no-stream container-name

Permission denied (scp)

Use cat with heredoc instead:

ssh srv759970 "cat > /​opt/​service/​Dockerfile" << 'EOF'
# Dockerfile content here
EOF

6. Optimization

Multi-stage Dockerfile Template

# Stage 1: Build
FROM python:3.11-slim AS builder
WORKDIR /​app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Stage 2: Runtime
FROM python:3.11-slim
WORKDIR /​app
COPY --from=builder /​usr/​local/​lib/​python3.11/​site-packages /​usr/​local/​lib/​python3.11/​site-packages
COPY . .
EXPOSE 8000
CMD ["python", "main.py"]

Best Practices

  1. Order layers: deps before code
  2. Use multi-stage builds
  3. Combine RUN commands
  4. Add .dockerignore
  5. Use --no-cache-dir for pip

Quick Reference

# Status
ssh srv759970 'docker ps && docker system df'

# Restart service
ssh srv759970 'cd /​opt/​service && docker-compose restart'

# Logs
ssh srv759970 'docker logs container --tail 50'

# Cleanup
ssh srv759970 'docker image prune -f && docker volume prune -f'

# Full redeploy
ssh srv759970 'cd /​opt/​service && docker-compose down && docker-compose build --no-cache && docker-compose up -d'

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View