Skip to content

Files

Latest commit

 

History

History

spaces

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

spaces

How to use spaces in Dockerfiles

FROM mcr.microsoft.com/windows/servercore:ltsc2016
COPY [ "Sub Dir", "C:/Program Files (x86)/Sub Dir" ]
  • Use JSON format of COPY instruction
  • Quote the paths containing spaces.
  • It is better to use unix forward slashes