Skip to content

Commit d2a882d

Browse files
authored
CBST-18: docker group (#183)
1 parent 50ff52c commit d2a882d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/cli/src/docker_cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ macro_rules! run_docker_compose {
1919
if !output.status.success() {
2020
let stderr = str::from_utf8(&output.stderr).unwrap_or("");
2121
if stderr.contains("permission denied") {
22-
eprintln!("Warning: Permission denied. Try running with sudo.");
22+
eprintln!("Warning: Permission denied. Follow Docker's official post-installation steps to add your user to the docker group: https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user");
2323
std::process::exit(1);
2424
} else {
2525
eprintln!("Command failed with error: {}", stderr);

docs/docs/get_started/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bash scripts/build_local_images.sh
6363
```
6464

6565
:::note
66-
If you require `sudo` access to run Docker, you will need `sudo` to run some of the Commit-Boost commands. This is because under the hood Commit-Boost invokes the Docker API. You can double check this by running `docker info` in a terminal
66+
If you require `sudo` access to run Docker, you will need `sudo` to run some of the Commit-Boost commands. This is because under the hood Commit-Boost invokes the Docker API. You can double check this by running `docker info` in a terminal. Consider adding your user to the docker group following [ Docker’s official post-installation steps](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user)
6767
:::
6868

6969
This will create two local images called `commitboost_pbs_default` and `commitboost_signer` for the Pbs and Signer module respectively. Make sure to use these images in the `docker_image` field in the `[pbs]` and `[signer]` sections of the `.toml` config file, respectively.

0 commit comments

Comments
 (0)