Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker: What is the default WORKDIR in a Dockerfile?

We can use WORKDIR to set a directory as work directory in Dockerfile, but what's the default value if we don't set?

like image 501
Freewind Avatar asked Jun 13 '16 05:06

Freewind


1 Answers

docker workdir

says it is /, so the root directory

like image 130
ThoFin Avatar answered Oct 07 '22 19:10

ThoFin