Category "dockerfile"

Problem with building Docker image from Dockerfile

my task is to create a docker container from my own Dockerfile using ubuntu:18.10 and run pdflatex in this container. My system is MacOs, my Dockerfile looks li

Docker Build COPY Pipfile Pipfile.lock Cache Key Error

I get this error when I try to build my Dockerfile. How can I fix this? failed to compute cache key: "/Pipfile.lock" not found: not found # Pull base image FROM

How use `echo` in a command in docker-compose.yml to handle a colon (":") sign?

Here is my docker-compose.yml, elasticsearch: ports: - 9200:9200/tcp image: elasticsearch:2.4 volumes: - /data/elasticsearch/usr/share/elasticsearch/da

Why is my env variable undefined when deployed to AWS?

I have a vue app I'm currently working on. I set the environmental variables in a file I named "config.ts" which contain codes similar to the code below: export

Syntax highlighting for Dockerfile in Sublime Text?

Is it possible to get syntax highlighting for a Dockerfile in Sublime Text?

Docker-Compose file has yaml.scanner.ScannerError

compose.yml file, which looks like this: version: '2' services: discovery-microservice: build: discovery-microservice context: /discovery-microserv

Docker Oracle Instant Client

I have been trying for 4 days to: Deploy Oracle Instant Client with Docker. I can give you the Dockerfile but it is 96 lines To use Oracle Instant Client on my

Why is this ENTRYPOINT incorrect?

My DockerFile has an ENTRYPOINT that just echoes ENTRYPOINT echo %windir%\system32\inetsrv\appcmd to the command window. This syntax works: ENTRYPOINT echo %wi

How can I set Bash aliases for docker containers in Dockerfile?

I am new to Docker. I found that we can set environment variables using the ENV instruction in the Dockerfile. But how does one set Bash aliases for long comman

Locked package.json files in Docker container using docker-compose

I'm using Docker for Mac and Docker Compose for development of a Node.js application and I'm experiencing an error with the package.json file being locked. The

Docker compose build error - Project file does not exist

I'm trying to create docker compose which run my ASP.NET Core app and mssql, but I'm getting an error during build. Here's my docker compose file: # Build Sta

What happens to a Docker Container when HEALTHCHECK fails

The docker docs say what a HEALTHCHECK instruction is and how to check the health of a container. But I am not able to figure out what happens when healthcheck

How to prevent docker container from stopping after executing sh script file

im running a docker container as shown below, after the sh files are executed the container terminate by default, how i can keep the container working in backgr

Docker Compose + Spring Boot + Postgres connection

I have a Java Spring Boot app which works with a Postgres database. I want to use Docker for both of them. I initially put just the Postgres in Docker, and I ha

microdnf update command installs new packages instead of just updating existing packages

My Dockerfile uses base image registry.access.redhat.com/ubi8/ubi-minimal which has microdnf package manager. When I include following snippet in docker file t

Can't login to ODK Central Admin panel

My ODK central was working perfectly fine before I decided to update it to the recent release of ODK using this URL (https://docs.getodk.org/central-upgrade/),

Add shell or bash to a docker image (Distroless based on Debian GNU/Linux)

I want add shell or bash to my image to execute installation command. I have copied the /bin/bash on my VM on to my image on Dockerfile: COPY /bin/bash /bin/

Using ARG and ENV in Dockerfile

I am learning how to use ARG and ENV in Dockerfiles. I have this simple Dockerfile: ARG my_arg ARG other_arg=other_default FROM centos:7 ENV MY_ENV $my_arg E

Can I run an intermediate layer of a Docker image?

When I fetch a Docker image from a repository I see that it pulls a bunch of layers with some ids, but when I try to run them using docker run it tells me that

Understanding "VOLUME" instruction in DockerFile

Below is the content of my "Dockerfile" FROM node:boron # Create app directory RUN mkdir -p /usr/src/app # Change working dir to /usr/src/app WORKDIR /usr/src