I am using postgres:11.10 image from dockerhub and I am looking to install the ‘procps’ package on the image prior to running the image. To that end I have added RUN apt-get install procps in my Dockerfile. However, while building the image I get the following: E: Unable to locate package procps ERROR: The command ..
I’m a python developer. I’m new in docker. I would like to build my own image. I take form Docker Hub the python 3.7 version build on top of Debian. However when I try to update atp with apt-get -y update, docker stops the building of the image and raise an error. My Dockerfile is ..
Running docker build with below mentioned docker file on jenkins master (linux) is giving me error. How can i resolve this issue ? FROM maven:3.6.3-adoptopenjdk-11 RUN apt-get update -y I checked many posts before writing this and this is what i have tried so far but nothing worked: Replaced "archive.ubuntu.com" with "us.archive.ubuntu.com" in /etc/apt/sources.list Replaced ..
I am using Ubuntu 20.04. I want to install NGINX through Dockerfile so I gave command: # apt-get install nginx -y Recently NGINX is asking two new options 1)Geographical Area 2) Time Zone as shown below: Now how to write script to automate nginx? Source: Dockerfile..
I’ve tried so many variations on this I can’t think of any more, nor can I find any. I’m simply trying to install docker via debian 10 in a VirtualBox VM on Windows 10. Everything else has installed fine up until now. However docker will not install. Here is what happens in each circumstance. I ..
I try to build my app with docker-compose docker-compose version 1.27.4, build 40524192 Docker version 19.03.6-ce, build 369ce74 Dockerfile: FROM ruby:2.6.4 RUN apt-get update && apt-get install -y –no-install-recommends build-essential libgsl0-dev libqt4-dev libqtwebkit4 libxml2-dev libxslt1-dev default-mysql-client nodejs xvfb and I’m getting error in console: docker-compose up Building app Step 1/7 : FROM ruby:2.6.4 —> 121862ceb25f ..
In my project, apt-get fails to work from Dockerfile when I launch it with docker-compose. But when I call docker directly with –network option, it does work. Here are configs: docker-compose.yml: version: ‘3’ services: main: build: main network_mode: host main/Dockefile: FROM osrm/osrm-backend:v5.22.0 RUN apt-get update && apt-get install -y wget nodejs npm osmium-tool This fails ..
I have a very minimalist Dockerfile for my production Django application: FROM python:3.8 ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 RUN apt-get update && apt-get -y upgrade WORKDIR /app COPY requirements.txt ./ RUN pip install –upgrade pip && pip install -r requirements.txt COPY . . EXPOSE 8000 CMD [ "gunicorn", "api.wsgi:application", "–bind=0.0.0.0" ] Do I need ..
I installed Ubuntu 16.04 from the Microsoft Store and installed docker on Ubuntu following the instructions here. I was able to get docker running but when I tried to build my docker image, it fails at the RUN apt-get update step. Similarly, when I run an Ubuntu container with docker run -it ubuntu bash, running ..
I’m new to docker and I created a docker image and this is how my docker file looks like. FROM python:3.8.3 RUN apt-get update && apt-get install -y –no-install-recommends postgresql-client && rm -rf /var/lib/apt/lists/* && apt-get install -y gcc libtool-ltdl-devel xmlsec1-1.2.20 xmlsec1-devel-1.2.20 xmlsec1 openssl- 1.2.20 xmlsec1-openssl-devel-1.2.20 && apt-get -y install curl gnupg && curl -sL ..