November 2021
docker_scp_deploy - Deploy Docker images via scp.
docker_scp_deploy save-path
image-name ssh-user ssh-host
remote-path
Deploy a Docker image to a remote host via SCP without uploading to a registry.
Path to the file where the image-name will be saved on the local host.
Name of the image which was built locally.
Username used for connecting to remote host.
Remote hostname.
Path where the image should be saved.
The locally built my-app:latest Docker image is saved in
the file my-app.tar.gz in the current directory. It is
uploaded as user ci to the host my-app.com
into the remote folder builds/:
$ docker_scp_deploy my-app.tar.gz my-app:latest ci my-app.com builds/
The uploaded image is currently not removed. Please ensure you login regularly and cleanup the target folder(s) manually.
scp(1), ssh(1)