234 questions
0
votes
1
answer
467
views
docker: invalid env file contains white spaces
I am trying to train a classifier model. I am following instructions which outline to use the format bellow. whenever I go to then train my model, docker returns this error. I am unsure what I need to ...
0
votes
1
answer
150
views
Docker container fails silently when running dbt commands with the wrong container user configuration
I provide the central question which is the purpose of this post first, followed by the problem context. Please let me know if you want me to clarify anything or require more information.
Question
Why ...
1
vote
0
answers
118
views
bunx command fails when running inside a Docker container
I'm trying to download a file from a Cloudflare R2 bucket using Wrangler on a Docker container and bunx but I keep getting errors that I believe are unrelated to Wrangler and might be related to how ...
1
vote
1
answer
406
views
Using --mount=type=cache and --no-cache-dir Together in Docker RUN Instruction
In a Dockerfile, I am considering using both the --mount=type=cache and --no-cache-dir options together in a RUN instruction. For example:
RUN --mount=type=cache,target=/root/.cache/pip pip install --...
0
votes
1
answer
207
views
Piping tar archive to host fails on docker run but works on docker exec
I'm trying to get some libraries out of a Docker image, since I temporarily need it in another environment.
Since I need symlinks to persist through this, I'm trying to tar the directory and pipe it ...
0
votes
1
answer
99
views
Docker run doesn't work even through it can pull image and docker is running [duplicate]
This is my pc config.
pegasus@pegasus:~$ uname -a
Linux pegasus 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
pegasus@pegasus:~$ cat /etc/...
0
votes
1
answer
56
views
Docker attach remotely to a container running on a different Machine in the same LAN [Solved]
I have a laptop running Ubuntu 22.04, and a desktop computer running Ubuntu 24.04, within the same LAN. I would like to be able to attach a docker container running on the desktop, from the laptop. ...
0
votes
2
answers
820
views
docker top: unrecognized option: /
I have a Dockerfile
FROM eclipse-temurin:17-jre-alpine
LABEL authors="sort-architectures"
WORKDIR /app/kafka
COPY ./kafka-3.5.1-src .
CMD ls -lisa bin | grep kafka-s
ENTRYPOINT ["...
1
vote
1
answer
2k
views
Docker Container Error: OCI runtime create failed: invalid rootfs
I'm new to docker and I'm encountering an error when trying to run a Docker container and access its shell.
I've built an image named "friendnet-client" successfully. The image sets up a ...
0
votes
1
answer
1k
views
Issue with Git Pull while running Docker Container
I'm encountering an issue while attempting to execute a git pull command within a Docker container. Here's the Dockerfile configuration:
FROM ubuntu:latest
RUN apt update
RUN apt upgrade -y
RUN apt ...
3
votes
0
answers
214
views
Running cypress container with docker and custom network
I have this code in my gitlab-ci.yml:
stages:
- build
- test
build_frontend:
image: node:18.13.0
stage: build
script:
- npm install
- npm run build
artifacts:
paths:
- ...
0
votes
0
answers
32
views
Docker run printing wrong answer
FROM ubuntu
RUN apt-get update && apt-get install -y figlet
WORKDIR /app
COPY scriptas.sh /app/scriptas.sh
CMD figlet "NEDAS KAIRYS MKDF-23/1"&& chmod +x /app/scriptas.sh &...
0
votes
0
answers
606
views
How to run/create/launch a container from an image in VS Code?
Is there a way to run/create/launch a container from an image in VS Code (e.g., one I downloaded from Docker Hub), or do I need to do it from outside VS Code (e.g., docker run from the command-line, ...
0
votes
0
answers
52
views
I failed to send request to sandbox url with proxy in gitlab run, but the same could succeed at local run
my request code is mocha framework, in local run using vs code, just npm run test by manually setting the proxy (export http_proxy=**), it could succeed to get 200 status code,, but the same failed at ...
1
vote
1
answer
641
views
error mouting a container volume in docker
I'm new to docker and following through their getting started tutorial in the docs. I'm currently at the part where I need to mount a volume in order to persist data between container reruns. But when ...
0
votes
1
answer
265
views
Accessing aws credentials set as env variables in docker run command
Is there a way for AWS credentials passed as environment variables to the docker run command to be put to use for getting the caller identity details while the container is running?
This is the docker ...
1
vote
3
answers
373
views
I can't run docker on CMD: saved file tree to doc-filelist.js Copied JS to doc-script.js Compiled CSS to doc-style.css
I don't know why, but I've installed docker using npm (i've installed the app too).
I'm on a mac air M1
And when running any docker command (run), i've got this message (example with rabbitMQ):
docker ...
0
votes
0
answers
238
views
Can we change the hostname of Docker Container running in VM?
I am creating an elasticsearch image and want to run the container on some remote machine.
Suppose the machine hostname is "abc.com", so I am accessing the URL as "abc.com:9200" to ...
1
vote
1
answer
316
views
If docker run has multiple -e VAR=VALUE options for the same VAR, which one is used?
If I have docker run ... -e VAR=x ... -e VAR=y ..., what is the value of VAR in the container? From a quick test it looks like the last one is used, but is this guaranteed anywhere in the ...
0
votes
0
answers
87
views
Usage: Docker run
I have my Dockerfile setup for dbt-snowflake/dbt-core with all its prerequisites. I also created a group for that docker image and added some users to that group while writing a docker file.
Incase, ...
0
votes
1
answer
1k
views
Docker mount volume specify path
please I really need help creating a docker volume.
By default, when I create a volume, its location will be /var/lib/docker/volumes/
I need to change this default location to my SSD disk, ...
0
votes
1
answer
27
views
How to force-build a docker which is pre-requisite of another docker?
I have a docker, DockerB, which is based on DockerA. I want to make sure that whenever DockerB is built (e.g. using docker build ... DockerB), it first builds DockerA and then builds DockerB. What is ...
0
votes
1
answer
199
views
Docker will not run docker run -p 6379:6379 –name some-redis -d redis command
For my course we have to run:
docker run -p 6379:6379 –name some-redis -d redis:4.0.1
But when I run this command it says that its on invalid format. This class is a couple years old so I know things ...
1
vote
0
answers
252
views
When running a docker container with volume flag (-v), I am getting an error. EACCESS: permission denied. ERROR in [eslint] EACCES: permission denied
I am learning Docker and I am stuck with this permission issue.
I have created a simple React app and created its image.
Dockerfile I used
Dockerfile:
FROM node:alpine
WORKDIR '/app'
COPY package....
2
votes
1
answer
907
views
Variable passed by 'docker run' to CMD of Dockerfile is not resolved [duplicate]
Can anyone explain why is the environment variable passed by
docker run --rm -it -e APP_PORT=80 -p 8080:80 my_container <image-id>
to CMD in Dockerfile is not resolved in following cases:
...
...