Small docs cleanup

This commit is contained in:
Carl Tashian 2021-05-10 14:43:05 -07:00
parent 08f9bc0031
commit 6f0f023d2c

View file

@ -1,4 +1,7 @@
# Getting started with docker # Getting started with Docker
## NOTE: This guide is deprecated.
## Please see [smallstep/step-ca](https://hub.docker.com/r/smallstep/step-ca) on Docker Hub for instructions.
This guide shows how to set up [step certificates](https://github.com/smallstep/certificates) using docker. This guide shows how to set up [step certificates](https://github.com/smallstep/certificates) using docker.
@ -103,16 +106,16 @@ accepted certificate authority.
### Notes for running on a Raspberry Pi ### Notes for running on a Raspberry Pi
When you run step-ca on a Raspberry Pi, you might get the following error in the When you run step-ca on a Raspberry Pi, you might get the following error in
logs of your docker container: your continaer logs:
```sh ```sh
step-ca | badger 2021/05/08 20:13:12 INFO: All 0 tables opened in 0s step-ca | badger 2021/05/08 20:13:12 INFO: All 0 tables opened in 0s
step-ca | Error opening database of Type badger with source /home/step/db: error opening Badger database: Mmap value log file. Path=/home/step/db/000000.vlog. Error=cannot allocate memory step-ca | Error opening database of Type badger with source /home/step/db: error opening Badger database: Mmap value log file. Path=/home/step/db/000000.vlog. Error=cannot allocate memory
``` ```
In that case you need to adjust the `db` configuration in the file `/home/step/config/ca.json`, To fix it, adjust the `db` configuration in the file `config/ca.json`.
you need to adjust `badgerFileLoadingMode` from being `""` to the value `FileIO`. Change the value of `badgerFileLoadingMode` from `""` to `"FileIO"`.
```sh ```sh
docker run -it -v step:/home/step smallstep/step-ca sh docker run -it -v step:/home/step smallstep/step-ca sh
@ -120,16 +123,16 @@ docker run -it -v step:/home/step smallstep/step-ca sh
~ $ vi config/ca.json ~ $ vi config/ca.json
``` ```
You will end up with something similar like this: You will end up with this:
```json ```json
"db": { "db": {
"type": "badger", "type": "badger",
"dataSource": "/root/.step/db", "dataSource": "/root/.step/db",
"badgerFileLoadingMode": "FileIO", "badgerFileLoadingMode": "FileIO"
}, },
``` ```
## Dev environment bootstrap ## Dev environment bootstrap
To initialize the development environment we need to grab the Root fingerprint To initialize the development environment we need to grab the Root fingerprint