Docker compose file is invalidHow is Docker different from a virtual machine?Should I use Vagrant or Docker for creating an isolated environment?How to list containers in DockerHow to get a Docker container's IP address from the host?How to remove old Docker containersHow to deal with persistent storage (e.g. databases) in DockerCopying files from Docker container to hostCopying files from host to Docker containerKubernetes equivalent of env-file in DockerDocker link container as build argument
How to find Enhantments or Artifacts that have multiple effects?
Idiom for a situation or event that makes one poor or even poorer?
If you revoke a certificate authority's certificate, do all of the certificates it issued become invalid as well?
Why it is a big deal whether or not Adam Schiff talked to the whistleblower?
What is the gold linker?
Which culture used no personal names?
What happens when the Immolation spell is cast on a creature immune to fire damage?
How does a ball bearing door hinge work?
Company indirectly discriminating against introverts, specifically INTJ
Could an American state survive nuclear war?
How can I communicate feelings to players without impacting their agency?
I am often given, occasionally stolen, rarely sold, and never borrowed
Is is possible to externally power my DSLR with the original battery that is connected to the DSLR by means of wires?
Why is technology bad for children?
Can a species eat water?
Why is Trump releasing (or not) his tax returns such a big deal?
What fantasy book has twins (except one's blue) and a cloaked ice bear on the cover?
Is it safe to pay bills over satellite internet?
My First Riddle: What Am I?
Is there any research on the development of attacks against artificial intelligence systems?
Drawing a sequence of circles
Moonlight bright enough to see by
Can we not simply connect a battery to a RAM to prevent data loss during power cuts?
How to prove that invoices are really unpaid?
Docker compose file is invalid
How is Docker different from a virtual machine?Should I use Vagrant or Docker for creating an isolated environment?How to list containers in DockerHow to get a Docker container's IP address from the host?How to remove old Docker containersHow to deal with persistent storage (e.g. databases) in DockerCopying files from Docker container to hostCopying files from host to Docker containerKubernetes equivalent of env-file in DockerDocker link container as build argument
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I'm am trying to create a healthcheck for two of my images at runtime, but when I set up the first one I get:
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for docker-bench-security: 'healthcheck'
Below are my images
$ docker build --rm -t docker-bench-security .
Here is my docker-compose.yml
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
healthcheck:
test: ["CMD", "ec2-user_db_1"]
Info from docker ps -a
Image: Command: Name:
mysql:5.7 "docker-entrypoint.sh mysqld" ec2-user_db_1
wordpress "docker-entrypoint.sh apache2-foreground" ec2- user_wordpress_1
Any help would be greatly appreciated!
docker docker-compose
|
show 1 more comment
I'm am trying to create a healthcheck for two of my images at runtime, but when I set up the first one I get:
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for docker-bench-security: 'healthcheck'
Below are my images
$ docker build --rm -t docker-bench-security .
Here is my docker-compose.yml
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
healthcheck:
test: ["CMD", "ec2-user_db_1"]
Info from docker ps -a
Image: Command: Name:
mysql:5.7 "docker-entrypoint.sh mysqld" ec2-user_db_1
wordpress "docker-entrypoint.sh apache2-foreground" ec2- user_wordpress_1
Any help would be greatly appreciated!
docker docker-compose
You are not giving us the full picture in here, we are missing a crucial information: what is theversion
that begins yourdocker-compose.yml
? Mind that thehealthcheck
have been around only for version ^2.1 of docker-compose
– β.εηοιτ.βε
Mar 28 at 21:46
@b.enoit.be Sorry about that version: 3.1
– Christopher Vasquez
Mar 28 at 21:54
What doesdocker-compose --version
brings you?
– β.εηοιτ.βε
Mar 28 at 22:12
@b.enoit.be docker-compose version 1.23.2, build 1110ad01
– Christopher Vasquez
Mar 28 at 22:21
As you've pasted it,healthcheck:
is at the same level asdb:
and Docker Compose parses it as a separate service. Does indenting it one more level help?
– David Maze
Mar 28 at 23:17
|
show 1 more comment
I'm am trying to create a healthcheck for two of my images at runtime, but when I set up the first one I get:
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for docker-bench-security: 'healthcheck'
Below are my images
$ docker build --rm -t docker-bench-security .
Here is my docker-compose.yml
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
healthcheck:
test: ["CMD", "ec2-user_db_1"]
Info from docker ps -a
Image: Command: Name:
mysql:5.7 "docker-entrypoint.sh mysqld" ec2-user_db_1
wordpress "docker-entrypoint.sh apache2-foreground" ec2- user_wordpress_1
Any help would be greatly appreciated!
docker docker-compose
I'm am trying to create a healthcheck for two of my images at runtime, but when I set up the first one I get:
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for docker-bench-security: 'healthcheck'
Below are my images
$ docker build --rm -t docker-bench-security .
Here is my docker-compose.yml
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
healthcheck:
test: ["CMD", "ec2-user_db_1"]
Info from docker ps -a
Image: Command: Name:
mysql:5.7 "docker-entrypoint.sh mysqld" ec2-user_db_1
wordpress "docker-entrypoint.sh apache2-foreground" ec2- user_wordpress_1
Any help would be greatly appreciated!
docker docker-compose
docker docker-compose
edited Mar 28 at 21:59
Christopher Vasquez
asked Mar 28 at 21:34
Christopher VasquezChristopher Vasquez
12 bronze badges
12 bronze badges
You are not giving us the full picture in here, we are missing a crucial information: what is theversion
that begins yourdocker-compose.yml
? Mind that thehealthcheck
have been around only for version ^2.1 of docker-compose
– β.εηοιτ.βε
Mar 28 at 21:46
@b.enoit.be Sorry about that version: 3.1
– Christopher Vasquez
Mar 28 at 21:54
What doesdocker-compose --version
brings you?
– β.εηοιτ.βε
Mar 28 at 22:12
@b.enoit.be docker-compose version 1.23.2, build 1110ad01
– Christopher Vasquez
Mar 28 at 22:21
As you've pasted it,healthcheck:
is at the same level asdb:
and Docker Compose parses it as a separate service. Does indenting it one more level help?
– David Maze
Mar 28 at 23:17
|
show 1 more comment
You are not giving us the full picture in here, we are missing a crucial information: what is theversion
that begins yourdocker-compose.yml
? Mind that thehealthcheck
have been around only for version ^2.1 of docker-compose
– β.εηοιτ.βε
Mar 28 at 21:46
@b.enoit.be Sorry about that version: 3.1
– Christopher Vasquez
Mar 28 at 21:54
What doesdocker-compose --version
brings you?
– β.εηοιτ.βε
Mar 28 at 22:12
@b.enoit.be docker-compose version 1.23.2, build 1110ad01
– Christopher Vasquez
Mar 28 at 22:21
As you've pasted it,healthcheck:
is at the same level asdb:
and Docker Compose parses it as a separate service. Does indenting it one more level help?
– David Maze
Mar 28 at 23:17
You are not giving us the full picture in here, we are missing a crucial information: what is the
version
that begins your docker-compose.yml
? Mind that the healthcheck
have been around only for version ^2.1 of docker-compose– β.εηοιτ.βε
Mar 28 at 21:46
You are not giving us the full picture in here, we are missing a crucial information: what is the
version
that begins your docker-compose.yml
? Mind that the healthcheck
have been around only for version ^2.1 of docker-compose– β.εηοιτ.βε
Mar 28 at 21:46
@b.enoit.be Sorry about that version: 3.1
– Christopher Vasquez
Mar 28 at 21:54
@b.enoit.be Sorry about that version: 3.1
– Christopher Vasquez
Mar 28 at 21:54
What does
docker-compose --version
brings you?– β.εηοιτ.βε
Mar 28 at 22:12
What does
docker-compose --version
brings you?– β.εηοιτ.βε
Mar 28 at 22:12
@b.enoit.be docker-compose version 1.23.2, build 1110ad01
– Christopher Vasquez
Mar 28 at 22:21
@b.enoit.be docker-compose version 1.23.2, build 1110ad01
– Christopher Vasquez
Mar 28 at 22:21
As you've pasted it,
healthcheck:
is at the same level as db:
and Docker Compose parses it as a separate service. Does indenting it one more level help?– David Maze
Mar 28 at 23:17
As you've pasted it,
healthcheck:
is at the same level as db:
and Docker Compose parses it as a separate service. Does indenting it one more level help?– David Maze
Mar 28 at 23:17
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407183%2fdocker-compose-file-is-invalid%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407183%2fdocker-compose-file-is-invalid%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You are not giving us the full picture in here, we are missing a crucial information: what is the
version
that begins yourdocker-compose.yml
? Mind that thehealthcheck
have been around only for version ^2.1 of docker-compose– β.εηοιτ.βε
Mar 28 at 21:46
@b.enoit.be Sorry about that version: 3.1
– Christopher Vasquez
Mar 28 at 21:54
What does
docker-compose --version
brings you?– β.εηοιτ.βε
Mar 28 at 22:12
@b.enoit.be docker-compose version 1.23.2, build 1110ad01
– Christopher Vasquez
Mar 28 at 22:21
As you've pasted it,
healthcheck:
is at the same level asdb:
and Docker Compose parses it as a separate service. Does indenting it one more level help?– David Maze
Mar 28 at 23:17