How do you comment out lines that you don't want to be processed by Docker Compose?
Experience Level: Senior
Tags: Docker Compose
Answer
Prepend the lines that you want to comment out by the # character.
version: "3.9"
services:
my-service:
#image: busybox:latest
image: busybox:1.0.0
Related Docker Compose job interview questions
How can you override a command that will be executed in a container of a specific service in Docker Compose?
Docker Compose SeniorHow do you map ports to a specific service container in Docker Compose?
Docker Compose SeniorHow do tell Docker Compose to use custom .env2 file without passing it in command-line argument?
Docker Compose SeniorHow do you define a default value in Docker Compose interpolation?
Docker Compose SeniorHow does Docker Compose work with multiple .yml files?
Docker Compose Senior
Chat
Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.
Anonymous
Καλησπέρα.
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
the infinteis -3/15 so 1triition / infinet
Anonymous
e
e
Anonymous
<a href="https://inspirum.pl "
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
[url]https://inspirum.pl[/url]
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e