Questions tagged [dockerfile]

A Dockerfile is a file containing instructions to build a Docker image

0
votes
1answer
11 views

GITLAB-CI - Join network created by docker-compose

I am creating a gitlab-ci to run e2e tests over my application, so, given I have this docker-compose.yml: services: chrome: image: zenika/alpine-chrome:latest command: [ chromium-...
1
vote
0answers
8 views

How to use .gitlab-ci.yml on gitlab.com to build from Dockerfile and copy artifact from Dockerfile to GitLab public directory?

While I can successfully write a .gitlab-ci.yml on gitlab.com that passes my artifact to public/, I would like .gitlab-ci.yml to instead do the same using a Dockerfile to create the artifact. The ...
0
votes
1answer
18 views

Can't install package ‘ggpmisc’ is not available (for R version 3.5.0) [duplicate]

I'm trying to install ‘ggpmisc’ package in my Dockerfile, and I got the message : Installing package into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) Warning: unable to access index ...
1
vote
2answers
38 views

Why not using root user as default

I've reading two topics about Docker security: https://docs.docker.com/engine/security/security/ https://medium.com/@mccode/processes-in-containers-should-not-run-as-root-2feae3f0df3b I understand ...
1
vote
1answer
17 views

Change Docker image file system

I want to change the docker image(Any images such as Database images: MongoDB or PostgreSQL) to XFS file system. Is there any solution such as set options into the Docker file to change the file ...
-1
votes
0answers
32 views

Status 127 exit

enter image description hereI have created docker container remote-host, it is created successfully however its not running and status is 127 exit. Have created another container db it is running. I ...
0
votes
3answers
50 views

Dockerfile cannot run cp command to move file inside container

Hi I am trying to download a file inside container and moving this file in specific location inside container. RUN wget https://storage.googleapis.com/hadoop-lib/gcs/gcs-connector-latest-hadoop2.jar ...
0
votes
0answers
45 views

Application running on Linux Docker image, is unable to connect to SQL server on local windows machine

I have trying to dockerize my a ASP.Net Core 2.2 web application by running on Linux Docker image. I am however getting the following error when it is trying to connect to SQL server running on local ...
-2
votes
0answers
19 views

How to run a chrome browser on a docker container, from rest endpoint

Developed selenium scripts using the PageObject model and exposed the methods as rest API. So the idea if I call particular rest endpoint the associated Page Object will be executed. for eg:- http:...
0
votes
1answer
28 views

Docker Mysql: What causes SQLSTATE[HY000] [2002] Connection timed out?

When running queries in my Docker I get this error, for example php artisan clear-compiled In Connection.php line 664: SQLSTATE[HY000] [2002] Connection timed out (SQL: select `id`, `name` from ...
-1
votes
1answer
17 views

Unable to RUN apt-get update in Dockerfile with manual iptables

I have an iptables configured on my server. When i try to build my custom docker image with a Dockerfile, I've an error when the Dockerfile trying to update the source list with RUN apt-get update: W:...
-1
votes
1answer
44 views

Cannot open a React app in the browser after dockerising

I'm trying to dockerise a react app. I'm using the following Dockerfile to achieve this. # base image FROM node:9.4 # set working directory WORKDIR /usr/src/app # install and cache app ...
0
votes
0answers
22 views

Is there a way to suppress “update-alternatives: warning: skip creation” warnings when building a Docker image?

Building this Dockerfile: FROM ubuntu:19.10 ENV DEBIAN_FRONTEND noninteractive RUN apt-get update RUN apt-get install -y locales apt-utils RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /...
0
votes
1answer
25 views

Using wine process within docker without attaching to a shell

I am trying to run a windows command-line program called msconvert inside a docker container. The authors provide a docker image and it works just fine using ´docker run´ or when connecting to the ...
0
votes
1answer
18 views

Docker Container Jenkins Pipeline Script: Permission denied while executing the script

I am running jenkins inside a docker container. I have created a simple pipleline to checkout,build and run docker image, but I am getting the following error. Below is my pipleline script: node { ...
0
votes
0answers
15 views

How to fix “Exception in thread ”main“ org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]” error in a docker container

I'm trying to run uiautomatorviewer (from android sdk tools) in a docker container. But I get below error on running the docker container. Exception in thread "main" org.eclipse.swt.SWTError: No more ...
0
votes
0answers
14 views

Docker kobotool/kpi ,postgres image issue

I am trying to implement Kobotool/KPI as frontend and postgres database as backend ,but i am not getting how to write code kpi: image: kobotoolbox/kpi links: -kobotoolbox: ports: - ...
0
votes
1answer
25 views

Failed to connect to MySql from Shiny-docker app

I have a Shiny app which is hosted in Ubuntu. This app depends on data that are updated each day and the updated data is stored in local MySql server. To fetch data when App Statistics_FN = function(...
-1
votes
2answers
25 views

Dynamically add docker container ip in Dockerfile ( redis)

How do I dynamically add container ip in other Dockerfile ( I am running two container a) Redis b) java application . I need to pass redis url on run time to my java arguments Currently I am ...
0
votes
1answer
17 views

Dockerfile cannot run manage.py on Windows 10 [duplicate]

Here is my Dockerfile: # base image FROM python:3.7.2-alpine # set working directory WORKDIR /usr/src/app # add and install requirements COPY ./requirements.txt /usr/src/app/requirements.txt RUN ...
-1
votes
0answers
15 views

Issue with amazon linux docker image

I am trying to create a new docker image based off on one of the official Amazon Linux docker images but something is not entirely correct. Here is the content of Dockerfile: FROM amazonlinux:2017....
0
votes
0answers
7 views

isc-dhcp-server is not running in docker container [on hold]

I'm going create DHCP server with docker (There is a debian Image). This one is in the same container with my DNS server (who is working correctly) I don't use DHCPv6 So, when I try to start "service ...
0
votes
1answer
35 views

is docker daemon running

I am running jenkins container on kubernetes. for some reason, creating a pipeline that pulls dockerfile from bitbucket and builds an image gives me an error. The pull stage works fine, the problem is ...
0
votes
0answers
15 views

How to run multiple commands in one Github Actions Docker

What is the right way for running multiple commands in one action? For example: I want to run a python script as action. Before running this script I need to install the requirements.txt. I can ...
0
votes
0answers
31 views

Acces to hostname postgres docker with my local machine

I have a docker-compose.yml and local.yml file with my project symfony 4. The build docker is success in and a see in a kitmatic a fixtures and migrations is done. i use cmd: docker-compose -f ...
0
votes
3answers
39 views

How to use variables from .ENV file in dockerfile?

I have 2 files, the first one is (dockerfile) and the second (test.env) when I run the dockerfile I want it will takes the variable aaa which = to index.php from the test.env dockerfile: FROM php:7....
1
vote
1answer
44 views

How to fix 'Permission denied' in Docker sh entrypoint

I'm trying to create an easy-to-use Docker image for the Garry's Mod server. While my Docker image builds just fine, running it as a container always results in a single error: /bin/sh: 1: ./easygmod....
0
votes
1answer
31 views

How to edit library package inside docker image

I want to manually change some source code in a .py file inside gensim library, which is installed inside a docker image after pip install -r requirements.txt which has gensim library version ...
0
votes
2answers
41 views

how to change container hostname when using entrypoint script?

Trying to change the hostname of container with export HOSTNAME=somehost from entrypoint.sh script but its not chaging Attaching my current dockerfile and entrypoint.sh files Dockerfile: FROM ubuntu:...
-1
votes
1answer
28 views

Mount point name for a docker volume

With the below command: docker container run -dit --name testcontainer –mount source= ubervol, target=/vol alpine:latest source mount point name is ubervol pointing to target /vol that resides ...
0
votes
0answers
39 views

Docker - Running .Net Framework 4.5 Application

So I decided to dabble a little bit in the world of containers. I'm used to running VMs, but after learning more about containers I can see much better use of resources than VMs. So in my process of ...
0
votes
1answer
34 views

Docker build from Dockerfile hangs indefinitely and occasionally crashes with error 'failed to start service utility VM'

I am currently using Docker Desktop for Windows and following this tutorial for using Docker and VSCode ( https://scotch.io/tutorials/docker-and-visual-studio-code ) and when I am attempting to build ...
1
vote
2answers
40 views

How do I connect to DB2 from a docker container using ASP.Net Core?

I am attempting to connect to a DB2 server (on prem) from a Windows based Docker container. It is currently using the IMB.Data.DB2.Core nuget package (latest). The docker file is just the auto-...
-1
votes
0answers
13 views

I run a Dockerfile and Deployed it in local browser, it is navigating to IIS Server. Help me to fix this?

I Exposed the Docker file to port 90, iis is running in port 80 I was running a dockerfile in windows 7 using docker toolbox. I have also installed IIS Server locally. I Expect hello Dude in local ...
0
votes
1answer
28 views

Why wont docker allow me to execute a binary file without an interactive session?

I am familiar with docker but have reached a road block. I am trying to call an executable from the terminal without running an interactive session. I can currently get this done by exectuing the ...
0
votes
2answers
22 views

ModuleNotFound while Dockering python app

I have a simple python app, which uses custom class I've created. The following folder structure is the following: │ mains | ├── run_it.py | ├── __init__.py │   ├── parsers │ ├── parser.py ...
0
votes
0answers
25 views

.sh file not copied to the root directory after building docker image

after building docker file on windows 10, and create container, container doesnt appear running i have to user "docker container list -a" PS C:\users\amrka\desktop\myimages> docker logs 640a26ca5cbd ...
1
vote
3answers
34 views

Running Angular app as docker image using Node js

Trying to build angular application in docker and run as container in my local using Node js. I have used build image using below Dockerfile, but i am not sure what i am missing while running. Can ...
0
votes
1answer
34 views

Install base docker image from bash

My dockerfile is as below: FROM bash:4.4 COPY prerequisites_ubuntu.sh /temp/prerequisites_ubuntu.sh RUN /temp/prerequisites_ubuntu.sh prerequisites_ubuntu.sh : FROM ubuntu:latest apt-get ...
0
votes
1answer
49 views

Docker - parent image execution fails due to missing root access

The parent image I am using seems to require root access to run its ENTRYPOINT instruction. In my Dockerfile I need to run my own container (executable) with normal user at the end. How do I switch ...
-1
votes
0answers
24 views

when i run dockerfile and deploy it in local browser it is navigating to the iis server. Help to fix this?

I was running a dockerfile in windows 7 using docker tool box. I have also installed IIS Server locally. I Attached the Commands in Terminal [email protected] MINGW64 /c/Program Files/Docker ...
0
votes
1answer
28 views

docker-compose overrides directories in the container

Context I set up a PHP application recently to work in a docker container connected to a database in a different container. In production, we're using a single container environment since it just ...
1
vote
0answers
30 views

How to install editbin.exe without installing an entire Visual Studio? [duplicate]

I am trying to move my current build server, which is based on Visual Studio, to a containerized environment. As such, I am trying to use the mcr.microsoft.com/dotnet/framework/sdk:4.7.2-...
0
votes
1answer
48 views

how fix 'ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 “No such file or directory”)'

I am trying to install docker in a laravel project. Everything seems to work, except that when I try to import data into my comic, I get this error: I import width command line: docker-compose exec ...
1
vote
3answers
52 views

Meaning of root workspace - Executing docker run command

I execute a docker run command as shown below docker run -it --rm --net=host tensorrtserver_client When I execute this command, I see that command prompt changes from [email protected]_name to ...
1
vote
1answer
49 views

Docker - Share local storage between services

I'm building a multi-container App. Here is the overall view of the working directory: MABSED/ |_ docker-compose.yml |_ ... |_ streamer/ | |_ Dockerfile | |_ startStreaming.py | |_ credentials.py |...
0
votes
1answer
20 views

Kubernetes postStart seems to wreck shop for everything in deployment

We have the following deployment yaml: --- apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{DEP_ENVIRONMENT}}-{{SERVICE_NAME}} namespace: {{DEP_ENVIRONMENT}} labels: app: {{...
0
votes
1answer
20 views

TeamCity server in a Linux container, but Build Agent in a Windows container

Is it possible to run a TeamCity server instance in a Linux container, and then run a Build Agent in a Windows container and have it connect?
0
votes
1answer
42 views

Docker - Import local module on executable Python script

First of all, I'm relatively new to Docker, so sorry if my question is dumb or inmediat. I'm building a multi-container App and I'm having problems displaying one of its services which works fine on ...
0
votes
0answers
16 views

I have to combine two different dockerfiles into one dockerfile with conditions so that dockerfile should run on two different environments

I have a dockerfile for Prometheus which runs on amd64 and is as follows  ARG ARCH="amd64" ARG OS="linux" FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest LABEL maintainer="The Prometheus ...