Remove unnecessary curly braces around bash commands.

This commit is contained in:
Kevin Krakauer 2019-04-03 11:09:07 -07:00 committed by Ian Lewis
parent 6eb84a20ba
commit 51bfff9f74
2 changed files with 11 additions and 19 deletions

View File

@ -16,13 +16,11 @@ user `nobody` to avoid unnecessary privileges. The `/usr/local/bin` directory is
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
}
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

View File

@ -15,20 +15,16 @@ Now we will create an [OCI][oci] container bundle to run our container. First we
will create a root directory for our bundle.
```bash
{
mkdir bundle
cd bundle
}
mkdir bundle
cd bundle
```
Create a root file system for the container. We will use the Docker hello-world
image as the basis for our container.
```bash
{
mkdir rootfs
docker export $(docker create hello-world) | tar -xf - -C rootfs
}
mkdir rootfs
docker export $(docker create hello-world) | tar -xf - -C rootfs
```
Next, create an specification file called `config.json` that contains our
@ -36,10 +32,8 @@ container specification. We will update the default command it runs to `/hello`
in the `hello-world` container.
```bash
{
runsc spec
sed -i 's;"sh";"/hello";' config.json
}
runsc spec
sed -i 's;"sh";"/hello";' config.json
```
Finally run the container.