Docker · Directive
WORKDIR
Docker uses / as the default container working directory. Set an image default with Dockerfile WORKDIR, or override it at startup with docker run -w or --workdir.
Last updated
Syntax
docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
docker runRUNCMDENTRYPOINTCOPYADD