Add container config to compat image inspect

With docker-compose, there is a use case where you can `docker-compose
up -d`, then change a file like docker-compose.yml and run up again.
This requires a ContainerConfig with at least Volumes be populated in
the inspect data.  This PR adds just that.

Fixes: #10795

Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
Brent Baude
2021-07-09 10:07:39 -05:00
parent 43abe006a3
commit daebdf3859
4 changed files with 35 additions and 19 deletions

View File

@ -0,0 +1,2 @@
FROM alpine
WORKDIR /app

View File

@ -0,0 +1,5 @@
version: '3'
services:
app:
build: .
command: sleep 10002

View File

@ -0,0 +1,4 @@
# -*- bash -*-
sed -i -e 's/10001/10002/' docker-compose.yml
docker-compose up -d