Questions tagged ubuntu

Explore the latest questions and answers asked by our top developers.

Ubuntu image with ensurepip

I am trying to develop a kubeflow pipeline component. It pulls a (if I simplify) a simple docker image: FROM tensorflow/tensorflow:2.7.0-gpu However when pulling the docker image, kfp needs to run python3 -m ensurepip but I get an error message /usr/bin/python3: No module named ensurepip. I tried to add: RUN apt-get update RUN yes | […]

By Martin Becuwe
Published
Categorised as docker, ensurepip, kfp, tensorflow, ubuntu Tagged , , , ,

Docker image from tensorflow-gpu with ensurepip

I am trying to develop a kubeflow pipeline component. It pulls a (if I simplify) a simple docker image: FROM tensorflow/tensorflow:2.7.0-gpu However when pulling the docker image, kfp needs to run python3 -m ensurepip but I get an error message /usr/bin/python3: No module named ensurepip. I tried to add: RUN apt-get update RUN yes | […]

By Martin Becuwe
Published
Categorised as docker, ensurepip, kfp, tensorflow, ubuntu Tagged , , , ,

Questions during setup in Docker build freeze the build process

Issue I am trying to install some drivers on a Docker image. During the procedure, one of the installation asks me for some input from command line. This obviously freezes the procedure. How can I solve this? How to reproduce the issue Start a shell in the base image: docker run -it nvcr.io/nvidia/deepstream:6.0-triton Run the […]

By user1315621
Published
Categorised as build, command, docker, input, ubuntu Tagged , , , ,

Unable to install python3.7 on ubuntu 16.04

Following from this, I am trying to install like so (in docker, but also same error directly on host): RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && apt install -y python3.7 I am getting E: Unable to locate package python3.7 E: Couldn’t find any package by glob […]

By Gulzar
Published
Categorised as docker, installation, linux, python, ubuntu Tagged , , , ,

COPY failed while using docker

Im building a express app but when i use the command sudo docker build – < Dockerfile i get the error COPY failed: file not found in build context or excluded by .dockerignore: stat package.json: file does not exist. This is how my proyect structure looks like: . ├── build │   ├── server.js │   └── […]

By Facundo Serrano
Published
Categorised as docker, dockerfile, ubuntu Tagged , ,

NVIDIA cuDNN installation in ubuntu20.04 docker container

I tried to install NVIDIA cuDNN 8.3.2 following the official guide in Dockerfile: ENV OS=ubuntu2004 RUN wget https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/cuda-${OS}.pin RUN mv cuda-${OS}.pin /etc/apt/preferences.d/cuda-repository-pin-600 RUN apt-key adv –fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/7fa2af80.p> RUN add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/ /" RUN apt-get update ENV cudnn_version=8.3.2.1 ENV cuda_version=cuda11.5 RUN apt-get install libcudnn8=${cudnn_version}-1+${cuda_version} RUN apt-get install libcudnn8-dev=${cudnn_version}-1+${cuda_version} and I am getting the error: E: Version […]

By Alexander
Published
Categorised as cuda, cudnn, dockerfile, ubuntu Tagged , , ,

Reach personal DNS from ubuntu

I create my own DNS server with docker on a macvlan network. My issue is my host can’t reach my dns. I can’t ping a domaine name but i can dig my dns when i select my dns server like this: $ ping master.home.lan ping: master.home.lan: Nom ou service inconnu It’s not work when i […]

By idir
Published
Categorised as bind9, dns, docker, networking, ubuntu Tagged , , , ,

Install poppler in AWS base python image for Lambda

I am trying to deploy my docker container on AWS Lambda. However, I use pdf2image package in my code which depends on poppler. To install poppler, I need to insert the following line in the Dockerfile. RUN apt-get install -y poppler-utils This is the full view of the dockerfile. FROM ubuntu:18.04 RUN apt-get update RUN […]

By Apezzz
Published
Categorised as aws-lambda, docker, poppler-utils, python, ubuntu Tagged , , , ,

Getting "ERROR: for nginx Cannot start service nginx…Bind for 0.0.0.0:4088 failed: port is already allocated" error in Ubuntu for Docker

I am learning Docker and I set up a practice app in my local machine where it runs perfectly. The app contains 4 containers, node-app, mongodb, redis and nginx. So I’m trying to deploy it in my Ubuntu 20.04 server after cloning it from my Github repository. When I run docker-compose -f docker-compose.yml -f docker-compose.prod.yml […]

By s khan
Published
Categorised as docker, docker-compose, dockerfile, nginx, ubuntu Tagged , , , ,

Issue creating docker image which installs rstan

I have the following image: FROM rocker/r-ver:4.1.2 RUN apt-get update && apt-get install -y –no-install-recommends apt-utils ed libnlopt-dev && apt-get clean && rm -rf /var/lib/apt/lists/ RUN apt-get update RUN apt install software-properties-common -y # https://github.com/stan-dev/rstan/wiki/Configuring-C-Toolchain-for-Linux RUN add-apt-repository -y ppa:marutter/rrutter4.0 RUN add-apt-repository -y ppa:c2d4u.team/c2d4u4.0+ RUN apt-get update RUN apt install -y r-cran-rstan # https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started#installation-of-rstan RUN Rscript […]

By baxx
Published
Categorised as docker, r, rstan, ubuntu Tagged , , ,
1 108

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq