diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/docs/includes/install_gvisor.md | 12 | ||||
-rw-r--r-- | content/docs/user_guide/oci.md | 18 |
2 files changed, 11 insertions, 19 deletions
diff --git a/content/docs/includes/install_gvisor.md b/content/docs/includes/install_gvisor.md index b8257e2cc..800f915dc 100644 --- a/content/docs/includes/install_gvisor.md +++ b/content/docs/includes/install_gvisor.md @@ -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 diff --git a/content/docs/user_guide/oci.md b/content/docs/user_guide/oci.md index 49b94bdd3..0c539581f 100644 --- a/content/docs/user_guide/oci.md +++ b/content/docs/user_guide/oci.md @@ -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. |