What is .build-deps for apk add –virtual command?

What is .build-deps in the following command? I can’t find an explanation in the Alpine docs. Is this a file that is predefined? Is see this referenced in many Dockerfiles. RUN apk add –no-cache –virtual .build-deps \ gcc \ freetype-dev \ musl-dev RUN pip install –no-cache-dir <packages_that_require_gcc…> \ RUN apk del .build-deps 2 Answers 2

How can I use a variable inside a Dockerfile CMD?

Inside my Dockerfile: ENV PROJECTNAME mytestwebsite CMD [“django-admin”, “startproject”, “$PROJECTNAME”] Error: CommandError: ‘$PROJECTNAME’ is not a valid project name What is the quickest workaround here? Does Docker have any plan to “fix” or introduce this functionality in later versions of Docker? NOTE: If I remove the CMD line from the Docker file and then run … Read more

Database access using docker

I installed a new wordpress project using docker’s guide: mkdir my-wordpress-site cd my-wordpress-site ddev config –project-type=php ddev composer create wordpress/skeleton –no-interaction –prefer-dist ddev config –docroot=wp –project-type=wordpress ddev restart All done and I ran the front-end configuration. I am used to running things in windows(xampp) and heard of MAMP for mac. but now I need to … Read more

Get Environment Variable from Docker Container

What’s the simplest way to get an environment variable from a docker container that has not been declared in the Dockerfile? For instance, an environment variable that has been set through some docker exec container /bin/bash session? I can do docker exec container env | grep ENV_VAR, but I would prefer something that just returns … Read more

Why is the Java 11 base Docker image so large? (openjdk:11-jre-slim)

Java 11 is announced to be the most recent LTS version. So, we’re trying to start new services based on this Java version. However, the base Docker image for Java 11 is much larger than the equivalent for Java 8: openjdk:8-jre-alpine: 84 MB openjdk:11-jre-slim: 283 MB (I’m considering only the official OpenJDK and the most … Read more

Where is /var/lib/docker on Mac/OS X

I´m looking for the folder /var/lib/docker on my Mac after installing docker for Mac. With docker info I get Containers: 5 … Server Version: 1.12.0-rc4 Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 339 Dirperm1 Supported: true … Name: moby ID: LUOU:5UHI:JFNI:OQFT:BLKR:YJIC:HHE5:W4LP:YHVP:TT3V:4CB2:6TUS Docker Root Dir: /var/lib/docker Debug Mode (client): false …. But I … Read more