From 2d86aa7b4c852710bfeaff1cdcc9fb0e79bf8ead Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Fri, 2 Feb 2024 09:26:06 -0500 Subject: [PATCH] chore: Adds instructions for snap installation (#484) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index fd636be0..19362a9f 100644 --- a/README.md +++ b/README.md @@ -94,12 +94,22 @@ With valid `source` options as such: ## Installation **Ubuntu/Debian** + +Using debs: ```bash export DIVE_VERSION=$(curl -sL "https://api.github.com/repos/wagoodman/dive/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') curl -OL https://github.com/wagoodman/dive/releases/download/v${DIVE_VERSION}/dive_${DIVE_VERSION}_linux_amd64.deb sudo apt install ./dive_${DIVE_VERSION}_linux_amd64.deb ``` +Using snap: +```bash +sudo snap install docker +sudo snap install dive +sudo snap connect dive:docker-executables docker:docker-executables +sudo snap connect dive:docker-daemon docker:docker-daemon +``` + **RHEL/Centos** ```bash export DIVE_VERSION=$(curl -sL "https://api.github.com/repos/wagoodman/dive/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')