Skip to content

Instantly share code, notes, and snippets.

@joeywang
Created October 24, 2024 21:47
Show Gist options
  • Select an option

  • Save joeywang/649eef61802a5504aabda943656d61c8 to your computer and use it in GitHub Desktop.

Select an option

Save joeywang/649eef61802a5504aabda943656d61c8 to your computer and use it in GitHub Desktop.
# talk to docker through unix-socket
curl --unix-socket /var/run/docker.sock 'http://localhost/images/json?all=true' | jq '.'

how to rsync file

# make sure rsync installed on container first
rsync --include='lib' --include='lib/**' --exclude='*' -e 'docker exec -i' -avz . mycontainer:/app/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment