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

Deploy dist file in docker file

How to write a docker file to deploy a dist file of an Angular Application In a server. I see most of them have used nginx as a server. Why is it so? Is there any specific reason I want it to be...

View Article


Should I chunk my docker images in many small layers instead of one large?

When I build docker image for existing applications I try to use as few layers as possible and clean up any unwanted files. For example building an image for moodle:# Dockerfile for moodle instance.#...

View Article


Docker Images via Container vs Dockerfile

Pardon the dumb questions, but I've been learning about Docker and container technologies and I was learning about using Dockerfiles to specify build instructions for an image, and how each instruction...

View Article

Jenkins Dockerfile declarative pipelines: getting the built image tag

I'm trying to get the image tag generated with the help of the dockerfile agent in Jenkins declarative pipelines.This Jenkinsfile is incomplete though, because I still need the deployment...

View Article

How to develop a docker container for laravel without laradock or docker-compose

I am very new to docker. I want to build a laravel development environment with docker. I already tried laradock but it seemed complicated for me. I was wondering whether it is possible to create a...

View Article


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

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

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


PROXY is not working inside windows container

I'm using windows containers in windows 10. I've set proxy variables(HTTP_PROXY,HTTPS_PROXY) in environmental variable setup and using VPN. I also configured resources -> Proxies.I was trying to...

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

Building a docker container with multiple conda envs

As a novice to the technology I have only a basic knowledge regarding how to build and deploy a docker so i was hoping someone could provide some help.The situation is the following:I need to create a...

View Article

How to load several environment variables without giving env and args only...

NOTE: Here we don't use docker run command and docker-compose.yml only using dockerfile and settings.env how can we can achieve this requirement.

View Article

DNS resolution fails when container is started via docker-compose

I recently decided to try out windows containers and i am using my private minecraft server for that purpose (as a hobby project).I have an image prepared, based on Windows Server Core 2022.When i...

View Article


Specify image in Dockerfile based on building client platform/architecture

I have a somewhat specific, Swift-based problem.It seems that none of the official Swift images on Dockerhub support the M1, and instead the only seemingly reliable arm64 Swift images are found at...

View Article

My Python application doesn't communicate with MySQL inside docker. Can...

The connection is not succeeding in docker. Look at my settings:DockerfileFROM python:3.8.5-alpineWORKDIR /appCOPY requirements.txt .RUN python3 -m pip install --upgrade pipRUN pip install -r...

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

Docker image build Error : unable to find user admin: no matching entries in...

here's how my Dockerfile look like :[root@centos7 ~]# cat Dockerfile# syntax=docker/dockerfile:1#use centos imageFROM centos# Add none root userCMD useradd admin && echo "admin:admin" CMD...

View Article


Docker image does not launch node web app

Trying to follow this tutorial from MS but I keep getting "This page isn't working" error. Is there something wrong with the index.js file that is causing the page to not come up? Here is the repo with...

View Article

Windows Based Docker Images

I am in the middle of testing this: https://github.com/docker-archive/communitytools-image2docker-win, converting a VHD to a Docker Image. But based on what I am reading, it will only install features...

View Article

How to change container's port to another one without reconfiguring the...

I'm running a local DNS that automatically creates entries for docker images from their name. I want to be able to type "jira.test" in my browser address bar and have the web interface be displayed....

View Article
Browsing all 136 articles
Browse latest View live


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