diff options
author | Ian Lewis <ianlewis@google.com> | 2020-05-20 16:04:16 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-20 16:05:49 -0700 |
commit | 61e68798828b500f093c4c129cb87361c2fe4a4f (patch) | |
tree | 58ddcdb52461ab4021793e406244992aa814a6ad /g3doc/user_guide/quick_start | |
parent | a338eed1d8210acf6c43f9c047b3a1a3f5742c99 (diff) |
Update the Docker quickstart to use 'runsc install'
PiperOrigin-RevId: 312573487
Diffstat (limited to 'g3doc/user_guide/quick_start')
-rw-r--r-- | g3doc/user_guide/quick_start/docker.md | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/g3doc/user_guide/quick_start/docker.md b/g3doc/user_guide/quick_start/docker.md index fa8b9076b..6ad594ecc 100644 --- a/g3doc/user_guide/quick_start/docker.md +++ b/g3doc/user_guide/quick_start/docker.md @@ -14,24 +14,28 @@ the next section and proceed straight to running a container. ## Configuring Docker First you will need to configure Docker to use `runsc` by adding a runtime entry -to your Docker configuration (`/etc/docker/daemon.json`). You may have to create -this file if it does not exist. Also, some Docker versions also require you to -[specify the `storage-driver` field][storage-driver]. - -In the end, the file should look something like: - -```json -{ - "runtimes": { - "runsc": { - "path": "/usr/local/bin/runsc" - } - } -} +to your Docker configuration (e.g. `/etc/docker/daemon.json`). The easiest way +to this is via the `runsc install` command. This will install a docker runtime +named "runsc" by default. + +```bash +sudo runsc install +``` + +You may also wish to install a runtime entry for debugging. The `runsc install` +command can accept options that will be passed to the runtime when it is invoked +by Docker. + +```bash +sudo runsc install --runtime runsc-debug -- \ + --debug \ + --debug-log=/tmp/runsc-debug.log \ + --strace \ + --log-packets ``` -You must restart the Docker daemon after making changes to this file, typically -this is done via `systemd`: +You must restart the Docker daemon after installing the runtime. Typically this +is done via `systemd`: ```bash sudo systemctl restart docker |