Skip to content

Commit

Permalink
Merge pull request #340 from jihchi/add_how_to_run_container_wo_sys_a…
Browse files Browse the repository at this point in the history
…dmin

Add how to run container w.o. sys admin
  • Loading branch information
jihchi authored Apr 8, 2024
2 parents dbdbd2c + 1658b53 commit b03078d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ docker run --cap-add=SYS_ADMIN ghcr.io/jihchi/mermaid.ink

Go to http://localhost:3000

If you don't / can't add `--cap-add=SYS_ADMIN` to the command, please refer to [3 ways to securely use Chrome Headless with this image](https://github.com/Zenika/alpine-chrome?tab=readme-ov-file#3-ways-to-securely-use-chrome-headless-with-this-image) to find the most suitable solution for your case.

### With `seccomp`

For example, you can use [Jessie Frazelle seccomp profile for Chrome](https://github.com/Zenika/alpine-chrome/blob/master/chrome.json):

```
wget https://raw.githubusercontent.com/jfrazelle/dotfiles/master/etc/docker/seccomp/chrome.json
docker run --security-opt seccomp=$(pwd)/chrome.json ghcr.io/jihchi/mermaid.ink
```

## Troubleshooting

### I'm getting back `HTTP 431 Request Header Fields Too Large` error
Expand Down

0 comments on commit b03078d

Please sign in to comment.