Quantcast
Channel: Active questions tagged dockerfile - DevOps Stack Exchange
Browsing all 136 articles
Browse latest View live
↧

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


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


Access AWS Secret inside docker file

I have a docker file running on AWS that looks like the following:FROM ubuntu:latestRUN apt-get updateRUN apt-get install -y python3RUN apt-get install -y gitRUN git initRUN git clone...

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 create a Docker image from a container without configuration changes?

I am aware of two ways of creating Docker images:Build the image using a DockerfileUse docker commit <container_id> against a running container with changes.I find changing a Dockerfile each time...

View Article


Docker warning about platform not matching the host platform

I have a Dockerfile that works on both mac and windows.But when I create an actual container on mac, I always get a warning that says:PS /Users/me/> docker run -it platformtest /bin/bashWARNING: The...

View Article

Minimize `docker build` execution time inside Docker-in-Docker containers

The use case:We have several "Release jobs" in Jenkins that build and push a Docker image of the application to a docker registry, update the project version in various files and finally push the...

View Article

Docker images vs CRI images compatibility in light of dockershim removal from...

So at 1.24 Kubernetes removes the dockershim. I was studying docs and if I understand them correctly Kubernetes supports only images in Open Container Initiative format? And Docker image is not the...

View Article


What command CMD["tini", "--", "node", "./bin/www"] means?

I am trying to understand what the following command does:CMD["tini", "--", "node", "./bin/www"]I am not sure what is going on in this command please?

View Article


What are the advantages of dockerizing nginx and php in different containers?

I just started working with Docker and Kubernetes and I've been watching a lot of stacks, in which some people build nginx+php in a single image and some build an image with nginx and another one with...

View Article

How do I run a CI build in a docker image matching the current `Dockerfile`...

Given a repository containing a Dockerfile that defines the build environment used by the CI pipeline as well as by the developer (e.g. as a Visual Studio Code devcontainer), the CI pipeline shall...

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article


--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article


--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article


--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

Deploying files contains in a git repo to a docker container

I have a stack deployed using a docker-compose file.Some of the containers will need to retrieve and host files located in a git repo (gitlab), what is the best way to retrieve / copy files from the...

View Article

How to remove directories and files in another layer using Docker? [duplicate]

Why this question?The reason for posting this Q&A is that sometimes certain software is required to compile software in a docker image. Once compiled, these packages are superfluous and should be...

View Article
Browsing all 136 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>