docker-container-deploy

Deploy Docker containers to remote hosts via SSH with port mappings.

15|8|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/AstorYH/PASB --skill docker-container-deploy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-container-deploy
Source: https://github.com/AstorYH/PASB/tree/main/nanobot/skills/docker-container-deploy
Command: npx skills add https://github.com/AstorYH/PASB --skill docker-container-deploy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill simplifies the process of deploying and managing Docker containers on remote hosts, automating image pulling and container setup.

Core Features & Use Cases

  • Automated Deployment: Deploys specified Docker images to a target host.
  • Image Management: Pulls images from registries if they are not found locally on the host.
  • Configuration: Supports custom container names, port mappings, environment variables, and volume mounts.
  • Use Case: Deploy a new version of a web application by specifying the image, container name, and necessary port mappings to a staging server.

Quick Start

Deploy the 'nginx:latest' image as a container named 'my-web-server' to '192.168.1.50' and map host port 8080 to container port 80.

Frequently Asked Questions about docker-container-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy Docker containers to a remote host via SSH?

Deploy Docker containers to remote hosts by connecting via SSH to pull images and apply container configurations. This skill automates image management and applies your specified port mappings, environment variables, and volume mounts on the target server.

Can I set environment variables and volume mounts when deploying Docker containers?

Yes, you can set environment variables and volume mounts when deploying Docker containers. The skill supports custom container configurations, allowing you to specify port mappings, environment variables, and volume mounts for your applications during the remote deployment process.

Do I need Docker installed on the target host before deploying containers?

Yes, you need Docker installed on the target host before deploying containers. The deployment requires SSH access to the specified host and Docker to be pre-installed, after which it can automatically pull missing images from registries and start the container.

What happens if the Docker image is not found locally on the remote host?

If the Docker image is not found locally on the remote host, the deployment process automatically pulls it from the registry. This image management feature ensures the specified image is retrieved and ready before configuring and starting the container.

What is the best way to automate pulling Docker images and configuring containers on a staging server?

The best way to automate pulling Docker images and configuring containers on a staging server is using an orchestration skill. It connects via SSH, retrieves missing images from registries, and applies your specified port mappings and environment variables to deploy the application.

Does this deployment approach work for web applications requiring specific port mappings?

Yes, this deployment approach works for web applications requiring specific port mappings. You can deploy a specified Docker image, name the container, and map host ports to container ports, such as mapping host port 8080 to container port 80 for an nginx server.