mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Install gVisor using a subshell.
If the user copy-and-pastes the commands to install gVisor in one go, the commands should stop early if there is an error. Particularly, if the runsc sha does not match.
This commit is contained in:
@@ -14,11 +14,14 @@ as user `nobody` to avoid unnecessary privileges. The `/usr/local/bin` directory
|
||||
a good place to put the `runsc` binary.
|
||||
|
||||
```bash
|
||||
wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc
|
||||
wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc.sha512
|
||||
sha512sum -c runsc.sha512
|
||||
chmod a+x runsc
|
||||
sudo mv runsc /usr/local/bin
|
||||
(
|
||||
set -e
|
||||
wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc
|
||||
wget https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc.sha512
|
||||
sha512sum -c runsc.sha512
|
||||
chmod a+x runsc
|
||||
sudo mv runsc /usr/local/bin
|
||||
)
|
||||
```
|
||||
|
||||
[latest-nightly]: https://storage.googleapis.com/gvisor/releases/nightly/latest/runsc
|
||||
|
||||
Reference in New Issue
Block a user