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

Docker build reset file ownership after each layer built

I've noticed a new strange thing where file permissions reset while building a docker image.Consider the following Dockerfile:FROM ubuntuRUN mkdir -p /home/user && \ useradd -l -u 1000 userRUN...

View Article


Unable to build multi architecture docker image

I want to built a docker image on my Intel laptop. The image will be deployed on both x86/x64 and arm64 hosts. The docker file uses ubuntu:20.04 base image. I tried building the image with following...

View Article


Ensuring Ubuntu docker image will not kill the process under heavy load

We run our app as a daemon (or some times with nohup command) so that Ubuntu will not kill this process under heavy processor and memory load. However, we want to dockerize (on Ubuntu 20.04 docker...

View Article

How to add packages to the micro and mini suse base images

I want to install tar and zstd packages to the base image of registry.suse.com/bci/bci-minimal:15.5 and registry.suse.com/bci/bci-micro:15.5 (taken from https://registry.suse.com/) but none of the...

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


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

Base image can not be fetched within Dockerfile build but can be fetched from...

Client: Docker Engine - CommunityVersion: 24.0.6OS: RHEL8I want to build an existing docker compose project on a new VM. The docker compose project consists of two containers db and web.I have to go...

View Article

docker | database connection refused between two containers

I have a mysql database running with the following docker-compose.yml:version: '3.3' services: db: image: mysql:5.7 restart: always environment: MYSQL_DATABASE: 'demo' # So you don't have to use root,...

View Article


Changing root password via DOCKERFILE

Nevermind the security implications, I'd like to change the root password via the DOCKERFILE. Is there a way to do this? I figured that the below line would work, however, it doesn't.RUN echo...

View Article


Dealing with challenges while deploying app through docker container on robot...

I was almost convinced that app deployment on battery powered robots running ubuntu can be better done with docker instead of some non docker approach because of different reasons likeatomic updates...

View Article

How to package C++ application along with its all dependencies for deployment...

I have a C++ application which depends on several other third party projects which I clone and build from source. I wanted to now deploy this application as a docker container. Consider following...

View Article

exporting Mikrotik as an OS

how can I export license "mikrotik" platform as a Docker image file?I boot a OVF file in Virtual machine and I need a command in router OS for build a docker image.

View Article

sh: can't open 'run.dev.sh': No such file or directory with declaring volumes...

I face this exact error but Idk how to solve it. Idk if my windows firewall is blocking it & if it is, then how would i solve it. for context, i'm not using docker desktop. just docker with wsl2 on...

View Article


How to implement docker image update on edge device not connected to the...

We need to deploy docker container on edge devices which wont be having Internet. These device occasionally connect to network and one of the device (lets call it H) on the network will have internet...

View Article

ADD'ing a zip file during a docker build corrupts the ADD'ed file

I am trying to upload a Python .whl file (essentially a .zip file) while building a Dockerfile image:FROM python:3.12-slim-bookwormRUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get...

View Article


how to decrease the docker image layers latency during the image build step?

I am following the Microsoft document to create a custom image of vsts-agent on top of ubuntu and install the required capabilities.Since our environment is not having internet enabled, we used certain...

View Article

cannot import OpenCV in a Docker container in Raspberry Pi

I am trying to build a Docker container in Raspbian 10.FROM python:3.5-busterRUN apt-get updateRUN apt-get install apt-utils -yRUN apt-get install python-opencv -yRUN apt-get install python3-opencv...

View Article


Conda environment in docker

I am new to dockerization and I am trying to make a docker image out of git repository. The Dockerfile looks like this,FROM continuumio/miniconda3:latestENV PYTHONDONTWRITEBYTECODE=1ENV...

View Article

Docker Compose: How do you build an image while running another container?

I'm trying to build a Nuxt 3 application using docker compose. However, I'm having trouble with docker compose and dockerfile configuration.ContextTo give background on the project that I'm working on,...

View Article

Understanding Docker layers

We have the following block in our Dockerfile:RUN yum -y updateRUN yum -y install epel-releaseRUN yum -y groupinstall "Development Tools"RUN yum -y install python-pip git mysql-devel libxml2-devel...

View Article
Browsing all 136 articles
Browse latest View live


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