I'm using RestHeart docker image.
From it's dockerfile:
FROM openjdk:8u111-jre-alpine
RUN apk upgrade --update && apk add --update libstdc++ curl ca-certificates bash
...
This means that curl is currently installed, right?
I run that image inside a Docker compose:
version: '3.4'
services:
mongodb:
image: mongo:4.0
ports:
- 27017:27017
restheart:
image: softinstigate/restheart:3.10.0
ports:
- 8082:8080
volumes:
- ./restheart:/opt/restheart/etc:ro
depends_on:
- mongodb
The container id for restheart container is e1a023d9a8a9
.
But when I execute docker exec e1a023d9a8a9 curl
I get:
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"curl\": executable file not found in $PATH": unknown
docker exec e1a023d9a8a9 bash -c curl
– clemens/bin/sh -c curl
it should be – clemens