Skip to content

Instantly share code, notes, and snippets.

@Pobega
Created November 20, 2025 17:25
Show Gist options
  • Select an option

  • Save Pobega/3e75ba1bbb02ee95f00cd6c105a6469f to your computer and use it in GitHub Desktop.

Select an option

Save Pobega/3e75ba1bbb02ee95f00cd6c105a6469f to your computer and use it in GitHub Desktop.
Run Docker using flatpak-spawn (for development inside toolbx/distrobox)
#!/bin/bash
# Save this as ~/.local/bin/docker
if [ ! -x /usr/bin/docker ]; then
flatpak-spawn --host /usr/bin/docker "$@"
else
/usr/bin/docker "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment