Skip to content

Commit 20f9cc0

Browse files
authored
fix(docs): add docker.io prefix for podman compatibility (#1030)
Fixes #1013 - Add docker.io/ prefix to Docker image names for podman-docker compatibility - Add mkdir -p command to create .config/croc directory before mounting This ensures the Docker commands work correctly with: - podman-docker on Ubuntu 24.04+ - Any system with unqualified-search registries disabled Co-authored-by: Murat Aslan <[email protected]>
1 parent 8f5d626 commit 20f9cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ conda install --channel conda-forge croc
151151
Add the following one-liner function to your ~/.profile (works with any POSIX-compliant shell):
152152

153153
```bash
154-
croc() { [ $# -eq 0 ] && set -- ""; docker run --rm -it --user "$(id -u):$(id -g)" -v "$(pwd):/c" -v "$HOME/.config/croc:/.config/croc" -w /c -e CROC_SECRET schollz/croc "$@"; }
154+
croc() { [ $# -eq 0 ] && set -- ""; mkdir -p "$HOME/.config/croc"; docker run --rm -it --user "$(id -u):$(id -g)" -v "$(pwd):/c" -v "$HOME/.config/croc:/.config/croc" -w /c -e CROC_SECRET docker.io/schollz/croc "$@"; }
155155
```
156156

157157
You can also just paste it in the terminal for current session. On first run Docker will pull the image. `croc` via Docker will only work within the current directory and its subdirectories.
@@ -317,7 +317,7 @@ croc --relay "myrelay.example.com:9009" send [filename]
317317
You can also run a relay with Docker:
318318

319319
```bash
320-
docker run -d -p 9009-9013:9009-9013 -e CROC_PASS='YOURPASSWORD' schollz/croc
320+
docker run -d -p 9009-9013:9009-9013 -e CROC_PASS='YOURPASSWORD' docker.io/schollz/croc
321321
```
322322

323323
To send files using your custom relay:

0 commit comments

Comments
 (0)