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 ArticleUsing access tokens on Dockerfile to clone repository: RUN command error
In a Dockerfile, I'm trying to clone several Gitlab repositories that are specified in a file, one per line, using an access token passed as an environment variable set in docker-compose.yml:COPY...
View ArticleBest Practice for writing DockerFile
I have mostly seen people using following type of pipeline steps(it varies, but in general this is the flow of steps I have observed)Process: clone repo -> build -> test -> create docker image...
View ArticleRedhat Nodejs-minimal yarn not found
Coming across a very odd issue here:Whenever I try using a ubi8/nodejs-14-minimal base image, the build fails with /bin/sh: yarn not found.I have installed yarn already by adding a Run npm install yarn...
View ArticleCan't change ownership of folders and files in Docker containers
I am having these two dockerfiles which in both I am adding the command RUN chown -R www-data:www-data /var/www/html to change the ownership to www-data user. The containers seems to build successfully...
View ArticleDockerfile & Docker compose for deploying a webpage with HTML and CSS at...
I need to deploy this application on EC2 instance using APACHE please suggest me docker compose and Docker file for this project in Github ProjectBackend is on Nodejs and MongoFrontend is in...
View ArticleOpentelemetry-operator running as root on Openshift/Kubernetes
I need this opentelemetry-operator to run as non-root on the /,https://github.com/open-telemetry/opentelemetry-operator/blob/main/autoinstrumentation/java/DockerfileI need to change the permission as...
View Articlecannot 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 ArticleUnable to understand Docker error
I am new to Docker and trying to run a webserver written in Python. I am using Linux Debian running as virtual machine on a Windows host. I have mounted the required folder from my Windows host to the...
View ArticleProblem with dockerfile base image
I am trying to run a dockerfile that has Centos 6.9 as base image. However, Docker has withdrawn support for Centos. The dockerfile begins with :FROM centos:6.9 as resultsdbbase # base image RUN sed -i...
View ArticleDocker push getting error EOF to private repository
I'm trying to push images to repo private, but it's getting error below. Before, it was working, but idk what happened...PS C:\Users\user\aplication> docker push registry.apprepo.app/app:1.22.3 The...
View ArticleHow do I test data persistence with a simple counter applicaiton in javascript?
I've a basic counter application in javascript.var count=0;function counter(){ count++; console.log(count);}counter();I want to test persistence of data using volumes and bind mount in docker.How do I...
View ArticleInstall 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 ArticleAngular universal with docker giving bad gateway
I am trying to dockerizing a angular universal app using nginx, and it's giving me really hard time. It keeps saying 502 bad gateway and I am unable to wrap my head around it.This is my DockerfileFROM...
View ArticleCannot install packages with apt in docker image
I'm trying to create my own postgres image that is supposed to connect to a postgreSQL database hosted on AWS RDS, however, I'm having trouble connecting to that database as well as trouble installing...
View ArticleRun Docker container with user who started it
I have two users on host machine usera, userb. I have added these users to the Dockerfile as below.FROM ubuntu:latestENV DEBIAN_FRONTEND=noninteractive \ TERM=xtermRUN groupadd -g 1111 groupname...
View ArticleAccess 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 ArticleHow to run pytorch on gitlab-runner via docker?
I am learning gitlab ci/cd with a AI/Deep learning application in mind. But I wasn't sure how pytorch could be used in a gitlab-runner.According to documentation:The following multi-platform Docker...
View ArticlePrevent docker to write inside container
I have an extracted container deployed on a shared storage, and want to launch this container locally. However, when I launch this container to run an application, it creates some temporary files...
View Articlenode_modules is several orders of magnitude bigger inside the container...
I have a simple Next project in Docker following the common recommendations for small-size containers. Heres my Dockerfile:FROM node:16-alpine as dependenciesWORKDIR /appCOPY package.json ./COPY...
View Article