profile
viewpoint

Ask questionsIncorrect syntax highlighting in dockerfiles with escaped double quotes

From https://github.com/microsoft/vscode/issues/90833

Windows dockerfiles require double quotes in RUN commands to be escaped, like \" (see: https://github.com/StefanScherer/dockerfiles-windows/tree/master/quotes).

Escaping a doublequote in vscode breaks the docker extension's syntax highlighting: screenshot of broken syntax highlighting

Steps to Reproduce:

  1. Make a new Dockerfile and paste the following content:
FROM microsoft/windowsservercore:latest

RUN powershell Write-Host \"Hello world\"

COPY . .
moby/moby

Answer questions zhammer

Thanks @JacksonKearl

useful!

Related questions

Swarm restarts all containers hot 2
can not successfully install docker-ce on ubuntu 16.04 ? why ,Can you help me? hot 1
OCI runtime exec failed: exec failed: cannot exec a container that has stopped: unknown hot 1
Allow COPY command's --chown to be dynamically populated via ENV or ARG hot 1
windowsRS1 and windowsRS5-process are failing due to "Unable to delete '\gopath\src\github.com\docker\docker" hot 1
Panic: runtime error: invalid memory address or nil pointer dereference hot 1
Error response from daemon: rpc error: code = DeadlineExceeded desc = context deadline exceeded hot 1
one container in the overlay network not available hot 1
Containers on overlay network cannot reach other containers hot 1
[Windows] windowsfilter folder impossible to delete hot 1
swarm node lost leader status hot 1
New-SmbGlobalMapping don't continued working in Container hot 1
failed to export image: failed to create image: failed to get layer: layer does not exist hot 1
"docker stack deploy">"rpc error: code = 3 desc = name must be valid as a DNS name component" hot 1
runc regression - EPERM running containers from selinux hot 1
Github User Rank List