mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Merge pull request #14626 from jakecorrenti/disable-docker-compose-health-check
Docker-compose disable healthcheck properly handled
This commit is contained in:
10
test/compose/disable_healthcheck/docker-compose.yml
Normal file
10
test/compose/disable_healthcheck/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
version: "3.7"
|
||||
services:
|
||||
noHc:
|
||||
image: alpine
|
||||
container_name: noHc
|
||||
ports:
|
||||
- "4000:80"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
disable: true
|
2
test/compose/disable_healthcheck/tests.sh
Normal file
2
test/compose/disable_healthcheck/tests.sh
Normal file
@ -0,0 +1,2 @@
|
||||
podman inspect --format='{{.Config.Healthcheck.Test}}' noHc
|
||||
like $output "[NONE]" "$testname: healthcheck properly disabled"
|
Reference in New Issue
Block a user