Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [dockerfile]

For questions about Dockerfiles - text files containing instructions to build Docker container images.

22 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
940 views

Can't change ownership of folders and files in Docker containers

I am having these two dockerfiles which in both I am adding the command RUN chown -R www-data:www-data /var/www/html to change the ownership to www-data user. The containers seems to build ...
ltdev's user avatar
  • 121
2 votes
0 answers
329 views

Run commands on docker container and sync automatically with host

I Dockerkized a MENN(Nextjs) stack App, now everything works fine. I run into issues when i need to install npm packages. let me first show you the structure src/server/Dockerfile FROM node:14-alpine ...
uneeb meer's user avatar
2 votes
0 answers
2k views

Can not find save handler 'redis' - session startup failed - for PHP

I am getting this error while loading index.php file. Warning: session_start(): Cannot find save handler 'redis' - session startup failed in /var/www/html/index.php on line 2 My index.php code ...
Gaurav Bhaskar's user avatar
2 votes
0 answers
767 views

How to deploy with AWS CodePipeline a multicontainer docker environment without dockerfile

I'm using simple docker-compose container images. Here's my docker-compose.yml version: '2' services: db: image: postgres:10.2 ports: - "5432:5432" ...
Vitaliy Filipov's user avatar
1 vote
1 answer
1k views

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 ...
bboy's user avatar
  • 11
0 votes
0 answers
34 views

Docker Desktop - WSL distro termined abruptly

I'm on Windows 10 with Docker Desktop and I get this error every time i'm trying to create the image from this dockerfile: # syntax=docker/dockerfile:1 FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20....
Danfb__'s user avatar
0 votes
0 answers
17 views

Conda environment in docker

I am new to dockerization and I am trying to make a docker image out of git repository. The Dockerfile looks like this, FROM continuumio/miniconda3:latest ENV PYTHONDONTWRITEBYTECODE=1 ENV ...
Shaz's user avatar
  • 101
0 votes
0 answers
21 views

ADD'ing a zip file during a docker build corrupts the ADD'ed file

I am trying to upload a Python .whl file (essentially a .zip file) while building a Dockerfile image: FROM python:3.12-slim-bookworm RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-...
rlandster's user avatar
  • 121
0 votes
0 answers
8 views

exporting Mikrotik as an OS

how can I export license "mikrotik" platform as a Docker image file? I boot a OVF file in Virtual machine and I need a command in router OS for build a docker image.
Ali Yadollahi's user avatar
0 votes
0 answers
70 views

Base image can not be fetched within Dockerfile build but can be fetched from shell

Client: Docker Engine - Community Version: 24.0.6 OS: RHEL8 I want to build an existing docker compose project on a new VM. The docker compose project consists of two containers db and web. I have ...
Michael's user avatar
  • 69
0 votes
0 answers
10 views

Ensuring Ubuntu docker image will not kill the process under heavy load

We run our app as a daemon (or some times with nohup command) so that Ubuntu will not kill this process under heavy processor and memory load. However, we want to dockerize (on Ubuntu 20.04 docker ...
RajS's user avatar
  • 141
0 votes
0 answers
83 views

Unable to build multi architecture docker image

I want to built a docker image on my Intel laptop. The image will be deployed on both x86/x64 and arm64 hosts. The docker file uses ubuntu:20.04 base image. I tried building the image with following ...
RajS's user avatar
  • 141
0 votes
0 answers
18 views

node_modules is several orders of magnitude bigger inside the container compare to host machine

I have a simple Next project in Docker following the common recommendations for small-size containers. Heres my Dockerfile: FROM node:16-alpine as dependencies WORKDIR /app COPY package.json ./ COPY ...
DomingoSL's user avatar
  • 101
0 votes
0 answers
44 views

How to run pytorch on gitlab-runner via docker?

I am learning gitlab ci/cd with a AI/Deep learning application in mind. But I wasn't sure how pytorch could be used in a gitlab-runner. According to documentation: The following multi-platform Docker ...
tinlyx's user avatar
  • 109
0 votes
0 answers
27 views

Run Docker container with user who started it

I have two users on host machine usera, userb. I have added these users to the Dockerfile as below. FROM ubuntu:latest ENV DEBIAN_FRONTEND=noninteractive \ TERM=xterm RUN groupadd -g 1111 ...
noonenine's user avatar
0 votes
0 answers
119 views

Cannot install packages with apt in docker image

I'm trying to create my own postgres image that is supposed to connect to a postgreSQL database hosted on AWS RDS, however, I'm having trouble connecting to that database as well as trouble installing ...
ptushev's user avatar
0 votes
0 answers
138 views

Angular universal with docker giving bad gateway

I am trying to dockerizing a angular universal app using nginx, and it's giving me really hard time. It keeps saying 502 bad gateway and I am unable to wrap my head around it. This is my Dockerfile ...
M Safdar Ali Khan's user avatar
0 votes
0 answers
25 views

Unable to understand Docker error

I am new to Docker and trying to run a webserver written in Python. I am using Linux Debian running as virtual machine on a Windows host. I have mounted the required folder from my Windows host to the ...
MAJID AHMAD's user avatar
0 votes
2 answers
154 views

How do I run a CI build in a docker image matching the current `Dockerfile` while being resource-aware?

Given a repository containing a Dockerfile that defines the build environment used by the CI pipeline as well as by the developer (e.g. as a Visual Studio Code devcontainer), the CI pipeline shall ...
Roland Sarrazin's user avatar
0 votes
1 answer
4k views

Docker warning about platform not matching the host platform

I have a Dockerfile that works on both mac and windows. But when I create an actual container on mac, I always get a warning that says: PS /Users/me/> docker run -it platformtest /bin/bash WARNING:...
dot's user avatar
  • 115
0 votes
1 answer
819 views

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 ...
imaheshwaran s's user avatar
-1 votes
1 answer
213 views

How do I install BlackDuck on mac?

I am trying to scan container images using the blackdock scanning tool. Unfortunately, I couldn't find any free version to play around with; please provide guidance and the simplest way to scan the ...
user3795861's user avatar