docker Questions

3

Solved

In my Dockerfile, I have the following: COPY . /var/task ...which copies my app code into the image. I need to exclude the vendor/ directory when performing this copy. I cannot add vendor/ to .do...
Section asked 14/1, 2021 at 14:3

4

Solved

I'm building a Docker image using multiple build args, and was wondering if it was possible to pass them to docker build as a file, in the same way --env-file can be pased to docker run. The env fi...
Mutz asked 18/4, 2017 at 13:43

4

Solved

I'm trying to build a simple container which downloads a Protocol Buffers binary from the release page (https://github.com/protocolbuffers/protobuf/releases/tag/v3.13.0) and adds it to the path. Fo...
Kepler asked 20/10, 2020 at 14:52

3

Solved

My team is trying to get a local setup for our project. We are running the same docker-compose file with image localstack/localstack:0.8.10. We are running the same shell script. Our script looks l...
Uredo asked 20/1, 2021 at 20:49

5

Solved

Consider the following docker build context: src/ hi there bye and Dockerfile: FROM ubuntu RUN mkdir test COPY src/hi src/there test/ This works just fine but I would like to make the lis...
Chapen asked 4/5, 2020 at 18:44

3

after I changed data directory of docker (i.e /etc/docker/daemon.json), I get the following error while I'm trying to run mysql image 2022-07-13T10:31:27.580551Z 0 [System] [MY-013169] [Server] /us...
Brennabrennan asked 13/7, 2022 at 10:48

4

Solved

I'm trying to build an Angular 15 project in Docker, but the build always hangs at the RUN npm run build step and never completes. This a fresh install ng new ng-sandbox-15 with the Dockerfile, .do...
Hardden asked 11/4, 2023 at 0:21

4

I have a docker-compose file which describes several services. All services have volumes attached to them, however only one has the volume named. When I run docker compose down I want to automatica...
Calk asked 7/4, 2021 at 14:49

6

I want to use a GPU inside a Visual Studio Code docker container to train model with TensorFlow. To build an image for my container I use next Dockerfile: FROM mcr.microsoft.com/vscode/devcontainer...
Electroscope asked 5/5, 2022 at 14:49

2

I have a kubernetes cluster, with a pod running the postgres database, so in Docker. Obviously, I have the data mounted on the host. I would like to setup Barman to have a backup solution for the D...
Fennelly asked 20/7, 2020 at 8:37

3

Solved

I've been playing around with docker images recently. I saw this docker doc on using FROM scratch. I am trying to see how far I can take this just for fun. I program in python. The doc says to comp...
Isometry asked 25/6, 2020 at 18:22

2

I'm trying to install a requirements.txt file in Docker, and I make it about 30 packages in when I get this error when trying to install importlib: Can not execute setup.py since setuptools is not ...
Revolutionize asked 10/6, 2022 at 8:0

2

I'm using a platform (Cytomine) on Ubuntu 18.04 to run some deep learning containerized applications (this platform handles the Docker images and containers automatically, so I only need to create ...
Orran asked 12/4, 2020 at 10:38

3

Solved

I need to execute a Python script inside the Ddev web docker image, but am having trouble figuring out what Debian python libraries are required to get Python binary with additional py package depe...
Lulu asked 4/1, 2022 at 22:7

5

Solved

After running docker stack deploy to deploy some services to swarm is there a way to programmatically test if all containers started correctly? The purpose would be to verify in a staging CI/CD pi...
Mourner asked 8/7, 2018 at 20:39

8

Solved

On our new company laptops we are running into issues running containers in docker desktop from visual studio. We tried a bunch of things which were unsuccessful. Any help / thoughts would be great...
Ecclesiasticism asked 17/5, 2022 at 2:27

2

Solved

docker system prune wants answer y/n. How to i pass in shell script my shell script #!/bin/sh docker stop registry docker system prune docker run -d -p 5000:5000 --restart=always --name registry -v...
Gloucester asked 16/6, 2021 at 13:1

1

Or, perhaps this boils down to: How do I get or create a working seccomp profile for google-chrome? I'd like to create a docker image where I launch Google chrome and browse sites I do not trust an...
Chine asked 4/8, 2023 at 5:40

2

I am trying to log the docker stats every minute to a csv file in S3 bucket. The below command is run on putty. while true; do docker stats --no-stream | aws s3 cp - s3://username/dockerstats/`dat...
Overshoot asked 6/5, 2020 at 7:22

6

Solved

I'm trying to start minikube on a Mac M1 (macOs Monterey V12.0.1) after installing minikube with homebrew (brew install minikube) but I am getting an error after running minikube start. The error i...
Gurgitation asked 29/11, 2021 at 19:36

4

I am trying to build CI with gitlab, I go from a docker image of docker, and i didn't have any problem with my front repository, but now with the back withe the same gitlab-ci configuration file, i...
Monia asked 21/2, 2017 at 14:51

2

Solved

https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#minimize-the-number-of-layers After read the above doc, I tested to prove the following statement: Only the instructions R...
Panada asked 13/4, 2022 at 8:0

2

I have been trying to build a docker service which would run django. but keep getting docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpec...
Hawes asked 29/8, 2023 at 17:40

2

Solved

i have a repository which consists of following two files, which builds an windows docker container with visual studio buildtools installed and pushes it to the registry provided by gitlab for my r...
Wilhelm asked 8/12, 2020 at 12:38

4

I am currently having trouble trying to pull my remote docker image hosted via AWS ECR. I am getting this error when running a deployment Step 1) run aws ecr get-login-password --region cn-nor...
Tectrix asked 17/6, 2020 at 3:17

© 2022 - 2024 — McMap. All rights reserved.