Improve command to run in docker

Using a working dir avoids the need for a cd command call
This commit is contained in:
Giso Stallenberg 2025-02-06 16:33:59 +01:00 committed by GitHub
parent 6b704502d6
commit 3a099cfc10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,5 +95,5 @@ docker build -t kompose https://github.com/kubernetes/kompose.git\#main
To run the built image against the current directory, run the following command:
```bash
docker run --rm -it -v $PWD:/opt kompose sh -c "cd /opt && kompose convert"
```
docker run --rm -it -v $PWD:/opt -w /opt kompose kompose convert
```