Skip to content

Instantly share code, notes, and snippets.

View jlfwong's full-sized avatar

Jamie Wong jlfwong

View GitHub Profile
// http://bgrins.github.io/devtools-snippets/#console-save
var saveToFile = function(data, filename) {
if (!data) {
console.error('Console.save: No data');
return;
}
if (!filename) {
filename = 'console.json';
}

SSH forwarding for Docker Desktop for Mac which respects $SSH_AUTH_SOCK

This is a quick tutorial on how to get SSH key forwarding working on Docker Desktop for Mac in situations where you want control of which ssh-agent server is being used, rather than the default.

You might want to do this to e.g. forward a specific SSH key into a docker container.

Docker has support for general SSH key forwarding, but this doesn't respect $SSH_AUTH_SOCK.

Background on ssh-agent