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

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


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


Multistage docker build for Python distroless image

This is my Dockerfile for distroless image similar to this exampleFROM python:3.9-slim AS build-venvRUN python3 -m venv /venv # other installation steps go hereRUN /venv/bin/pip install --upgrade pip...

View Article

Can't connect to local mongoDB from Docker Container

I have mongodb running in the host machine (Ubuntu 23.04) in the default port. I have set the bind_ip to be 0.0.0.0. In my docker-compose file, I have addedextra_hosts: -...

View Article

Image may be NSFW.
Clik here to view.

Docker Desktop - WSL distro termined abruptly [closed]

I'm on Windows 10 with Docker Desktop and I get this error every time i'm trying to create the image from this dockerfile:# syntax=docker/dockerfile:1FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04#...

View Article


Troubles with mapping ports on a very simple Docker container

I'm new to Docker and following a tutorial on Udemy.com. The turtorial has me setting and running a very simple container.Docker File# Specify a base imageFROM node:alpine# Putting files into a...

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

Multistage docker build for Python distroless image

This is my Dockerfile for distroless image similar to this exampleFROM python:3.9-slim AS build-venvRUN python3 -m venv /venv # other installation steps go hereRUN /venv/bin/pip install --upgrade pip...

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


bulding docker image for an arm32v7 processor

I managed to build a working docker image on my development laptop, but got an exec format error when I tried to run the docker image on the PC that the container shall run on.My dev PC is an ubuntu 24...

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

Intermittent Firefox Installation Failure in Docker CI

I have a docker image to install firefox, that runs as expected locally but fails intermittently on CI. Firefox doesn't get installed, this is what I am doing.FROM node:20RUN wget -O firefox.tar.bz2...

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


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 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


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
Browsing all 136 articles
Browse latest View live


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