Quantcast
Channel: Active questions tagged dockerfile - DevOps Stack Exchange
Browsing index pages (152 articles)
↧

Install a RPM from build context without copying it first

During dockerbuild, I'd like to install a (rather big) RPM from build context/host without copying it first into the image in order to keep my image small.Ideally, there would be a way to read a file...

View Article


How to get exposed ports from inside of container?

I want to know which port(s) are exposed when user run the image.docker run -p 1000:1234 myimagenameI want to get 1234 value in container since I will use it for some configurations(IIS bindings etc.)...

View Article


Run commands on docker container and sync automatically with host

I Dockerkized a MENN(Nextjs) stack App, now everything works fine. I run into issues when i need to install npm packages. let me first show you the structuresrc/server/DockerfileFROM...

View Article

Buildkit failing arm builds with missing binaries even though they are in $PATH

A few of our developers recently got some M1 machines, I want to provide them with ARM compatible images and have set my sights on Buildkit.I set up a podTemplate in Jenkins and run the build with this...

View Article

How do I write Dockerfiles for framework-specific projects like Laravel and...

I’m new to Docker and Docker Compose.I want to run a Laravel API in one container and a React frontend in another.Docker Hub has an image for Laravel, but I was told that isn't best practice to use as...

View Article


Image may be NSFW.
Clik here to view.

Docker file for AWS CLI not working

I need to extend the aws cli docker image with some custom scriptsI have created a docker file and am copying the script files into a directorywhen using the docker file in my gitlab job I get the...

View Article

Buildkit failing arm builds with missing binaries even though they are in $PATH

A few of our developers recently got some M1 machines, I want to provide them with ARM compatible images and have set my sights on Buildkit.I set up a podTemplate in Jenkins and run the build with this...

View Article

How can I create my own rhel-based kafka (4.0.0) image and modify the...

The problem I am having is that kafka does not use the environment variables passed in from Docker-compose. It just uses the default server.properties file. I know this is by design (or lack thereof).....

View Article


Image may be NSFW.
Clik here to view.

Package installed using Dockerfile not available on Jenkins pipeline stage

I'm having sort of a weird problem with my Jenkins pipeline. I've defined a Dockerfile which installs some tools I need for my CI/CD pipeline, such as node, npm, sfdx, and sfpowerkit (a plugin for...

View Article


Run commands on docker container and sync automatically with host

I Dockerkized a MENN(Nextjs) stack App, now everything works fine. I run into issues when i need to install npm packages. let me first show you the structuresrc/server/DockerfileFROM...

View Article

How do I install BlackDuck on mac?

I am trying to scan container images using the blackdock scanning tool. Unfortunately, I couldn't find any free version to play around with; please provide guidance and the simplest way to scan the...

View Article

How do I setup OpenRC in Docker? [closed]

Followed this answer https://stackoverflow.com/a/78270127A container doesn't really "boot". You simply choose what processstarts when the container starts -- maybe that's a process manager,like openrc,...

View Article

systemd in Docker/Podman: how to start a service within `RUN`?

So this works, at least in podman, to run unaltered debian with systemd started:ARG IMAGE_BASE='debian'ARG IMAGE_TAG='stable-slim'FROM ${IMAGE_BASE}:${IMAGE_TAG}RUN apt-get -qq update && \...

View Article


Fluentd is not detecting the .log buffer files. Hence it is not able to...

I have my django application proxied with nginx and using fluentd(logging solution) to collect the logs written by nginx and just write them to a output file. I am using docker images for nginx and for...

View Article

Run commands on docker container and sync automatically with host

I Dockerkized a MENN(Nextjs) stack App, now everything works fine. I run into issues when i need to install npm packages. let me first show you the structuresrc/server/DockerfileFROM...

View Article


Image may be NSFW.
Clik here to view.

Unable to Set Up Keycloak with Production Mode

I'm using Keycloak(26.0.7) as the IAM solution for our application. I want expose it via https://abc.xyz.com/keycloak-service URL. In the deployment setup I have a Load balancer, Nginx and Kubernetes...

View Article

Image may be NSFW.
Clik here to view.

Package installed using Dockerfile not available on Jenkins pipeline stage

I'm having sort of a weird problem with my Jenkins pipeline. I've defined a Dockerfile which installs some tools I need for my CI/CD pipeline, such as node, npm, sfdx, and sfpowerkit (a plugin for...

View Article


How can I get the Docker target platform inside the Build Environment /...

I'm doing multi-platform builds with buildx and would like to know if there is a way to determine what platform is currently being build so I can avoid certain steps for certain environments.For...

View Article

How do I install BlackDuck on mac?

I am trying to scan container images using the blackdock scanning tool. Unfortunately, I couldn't find any free version to play around with; please provide guidance and the simplest way to scan the...

View Article

Run Docker with same user as on local host and own mounted folders

I have a local folder (code) on my system, which belongs to my user.The local folder path is something like this:- home-- my_user---- work------ projects-------- codeI want to run a Docker container...

View Article
Browsing index pages (152 articles)


Latest Images