docker run --workdir /app myimage

Category: Docker

docker run --workdir /app myimage

Set the working directory inside the container to /app

Sets the starting directory for commands run inside the container to /app.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.