Skip to content

Commit

Permalink
Revert 1502 - Switching docker user to lighthouse (#1578)
Browse files Browse the repository at this point in the history
## Issue Addressed

The lighthouse user has recently changed to `lighthouse` from root. 

This requires uses to change ownership of their current docker mounted volumes and the upgrade path is non-trivial. 
This reverts #1502 and we will include it in a major release in the future.

## Proposed Changes

N/A

## Additional Info

N/A
  • Loading branch information
AgeManning committed Sep 1, 2020
1 parent 7d71d98 commit 8301a98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -r lighthouse && useradd --no-log-init -r -g lighthouse lighthouse
USER lighthouse
COPY --from=builder /usr/local/cargo/bin/lighthouse /usr/local/bin/lighthouse
COPY --from=builder /usr/local/cargo/bin/lcli /usr/local/bin/lcli
6 changes: 3 additions & 3 deletions book/src/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $ docker run lighthouse:local lighthouse --help
You can run a Docker beacon node with the following command:

```bash
$ docker run -p 9000:9000 -p 127.0.0.1:5052:5052 -v $HOME/.lighthouse:/home/lighthouse/.lighthouse sigp/lighthouse lighthouse --testnet medalla beacon --http --http-address 0.0.0.0
$ docker run -p 9000:9000 -p 127.0.0.1:5052:5052 -v $HOME/.lighthouse:/root/.lighthouse sigp/lighthouse lighthouse --testnet medalla beacon --http --http-address 0.0.0.0
```

> To join the altona testnet, use --testnet altona instead.
Expand All @@ -62,7 +62,7 @@ $ docker run -p 9000:9000 -p 127.0.0.1:5052:5052 -v $HOME/.lighthouse:/home/ligh
### Volumes

Lighthouse uses the `/home/lighthouse/.lighthouse` directory inside the Docker image to
Lighthouse uses the `/root/.lighthouse` directory inside the Docker image to
store the configuration, database and validator keys. Users will generally want
to create a bind-mount volume to ensure this directory persists between `docker
run` commands.
Expand All @@ -71,7 +71,7 @@ The following example runs a beacon node with the data directory
mapped to the users home directory:

```bash
$ docker run -v $HOME/.lighthouse:/home/lighthouse/.lighthouse sigp/lighthouse lighthouse beacon
$ docker run -v $HOME/.lighthouse:/root/.lighthouse sigp/lighthouse lighthouse beacon
```

### Ports
Expand Down

0 comments on commit 8301a98

Please sign in to comment.