2.9.0 | docker pull icr.io/ibmz/compose@sha256:46a8a0083c2f987bdfec6c84ecfcf39db5f42c0c9868d60fe2865e99937706d4 | Vulnerability Report | 08-16-2022 | 2.7.0 | docker pull icr.io/ibmz/compose@sha256:baba1e11709418ad8f3d4953b911c91e51b82e957387fc8909ee71f6f1f98aae | Vulnerability Report | 07-23-2022 | 2.6.0 | docker pull icr.io/ibmz/compose@sha256:46e7f5ba72690940021cc28b46620a3cc83bcf35022b5ed725f1eb6112ca87ca | Vulnerability Report | 06-06-2022 | 2.5.1 | docker pull icr.io/ibmz/compose@sha256:150c7214f9a1b34aa105542675f04b5d244dbc195b24efffa5865e94d8d958e2 | Vulnerability Report | 05-19-2022 |
Version | Pull String | Security (IBM Cloud) | Created |
---|---|---|---|
docker-compose.yml
file and other resources required for the containers specified in docker-compose.yml
.
version: '2'
services:
java:
image: icr.io/ibmz/openjdk:11.0.8
command: java --version
docker-compose.yml
to a docker volume.
docker-compose.yml
at the mount location. Ensure that you are mounting docker.sock
to the container as it is required to access the docker daemon.
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock:ro -v myvolume:/config/ icr.io/ibmz/compose:[tag] --env-file /config/docker-compose.yml up
docker-compose.yml
file, and other resources required for the containers specified in docker-compose.yml
.
FROM icr.io/ibmz/compose:[tag]
COPY docker-compose.yml /home/
ENV COMPOSE_FILE=/home/docker-compose.yml
CMD ["docker-compose", "up"]
docker build -t docker-compose-app .
docker.sock
to the container). This will cause the java --version
docker-compose to run the icr.io/ibmz/openjdk:11.0.8
image with the java --version
command.
docker run --name app -v /var/run/docker.sock:/var/run/docker.sock:ro docker-compose-app