Skip to content

Instantly share code, notes, and snippets.

View rpsirois's full-sized avatar

Robert Sirois rpsirois

View GitHub Profile
@rpsirois
rpsirois / dkr-shell-utils.zsh
Last active December 13, 2025 19:14
This script sets up a non-interactive SSH tunnel (-nNT, no shell, no TTY, no stdin) that forwards a remote Docker daemon’s Unix socket to a local socket, allowing local Docker commands to control the remote host without opening a remote shell.
#!/usr/bin/env zsh
function dkr-env-clear() {
export DOCKER_TLS_VERIFY=""
export DOCKER_HOST=""
export DOCKER_CERT_PATH=""
export DOCKER_MACHINE_NAME=""
}
function dkr-env() { dkr-env-remote $* }
@rpsirois
rpsirois / dkr-shell-utils.bash
Last active December 13, 2025 19:14
This script sets up a non-interactive SSH tunnel (-nNT, no shell, no TTY, no stdin) that forwards a remote Docker daemon’s Unix socket to a local socket, allowing local Docker commands to control the remote host without opening a remote shell.
#!/usr/bin/env bash
dkr-env-clear() {
export DOCKER_TLS_VERIFY=""
export DOCKER_HOST=""
export DOCKER_CERT_PATH=""
export DOCKER_MACHINE_NAME=""
}
dkr-env() { dkr-env-remote $* }