chore: Adds instructions for snap installation (#484)

This commit is contained in:
Guillaume Belanger 2024-02-02 09:26:06 -05:00 committed by GitHub
parent 5d6a406df1
commit 2d86aa7b4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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/')