Skip to content

Commit

Permalink
fix(docker): update the docker running command to make D-bus availabl…
Browse files Browse the repository at this point in the history
…e using privileged mode (#60)

* feat: update the docker running command to make D-bus available ay priviledged mode

* fix: update the docker running command to make D-bus available using privileged mode
  • Loading branch information
Meng-20 authored and HJ-Fan committed Dec 10, 2024
1 parent 671cd03 commit 7f706a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ If desired, the user can add `:vX.X.X` to the end of the command to obtain an ol
To enable the webui launching during cfm-service startup, the user must provide the `-webui` flag in the command below.

```bash
docker run --restart unless-stopped --network=host --name <container-name> --detach ghcr.io/seagate/cfm -webui -verbosity 4
docker run --restart unless-stopped --network=host --name <container-name> --detach --privileged -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket ghcr.io/seagate/cfm -webui -verbosity 4
```

By default, the cfm-service will be hosted at port 8080 and the webui will be hosted at port 3000. The user could change the port by input argument -Port and/or -webuiPort. The webui only works with --network=host mode.
Expand Down Expand Up @@ -66,5 +66,5 @@ docker build --no-cache -t <new-image-name> -f docker/Dockerfile .
...and then run those changes

```bash
docker run --restart unless-stopped --network=host --name <new-container-name> --detach <new-image-name> -webui -verbosity 4
docker run --restart unless-stopped --network=host --name <new-container-name> --detach --privileged -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket <new-image-name> -webui -verbosity 4
```

0 comments on commit 7f706a2

Please sign in to comment.