docker_scp_deploy(1) dreadwarrior | dotfiles

November 2021

NAME

docker_scp_deploy - Deploy Docker images via scp.

SYNOPSIS

docker_scp_deploy save-path image-name ssh-user ssh-host remote-path

DESCRIPTION

Deploy a Docker image to a remote host via SCP without uploading to a registry.

OPTIONS

save-path

Path to the file where the image-name will be saved on the local host.

image-name

Name of the image which was built locally.

ssh-user

Username used for connecting to remote host.

ssh-host

Remote hostname.

remote-path

Path where the image should be saved.

EXAMPLES

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/

BUGS

The uploaded image is currently not removed. Please ensure you login regularly and cleanup the target folder(s) manually.

SEE ALSO

scp(1), ssh(1)