Docker – break up long lines in Linux/Unix with backslash – what to use in windows

To break up a long Docker command line in Unix/Linux I am used to using a backslash for line continuation, such as:

docker run -d –name portainer
–restart unless-stopped
-p 9000:9000
-v /var/run/docker.sock:/var/run/docker.sock

Makes things a lot easier to read, but if you run that command in Windows it doesn't work. Is there an equivalent line continuation character in Windows or am I doomed to use docker-compose for everything?

submitted by /u/CeramicVulture
[link] [comments]
Source: Reddit