Questions tagged [docker]

Docker images, containers, hub, and everything related to the containerization platform

Filter by
Sorted by
Tagged with
0 votes
2 answers
13 views

Arguments in docker_compose.yml throwing error, but not with docker run

I am in some desperate help. I am atempting to translate this docker run command: docker run -d -p 5434:5432 --name postgres-2 livingdocs/postgres:14.4 standby -d "host=host.docker.internal port=...
user avatar
  • 101
0 votes
0 answers
32 views

How are dev servers for testing working and available outside of VPN?

I'm a web developer and at work we have different servers (we call them stands) for testing our deployed app. In order to deploy our app we connect via ssh to one certain server and start a process in ...
user avatar
  • 101
1 vote
1 answer
19 views

bind mount from host not appearing in docker container when using compose

I have a bind mount at /home/quant/mounted_folder with a fstab like this: /mnt/d/some_folder /home/quant/mounted_folder none bind I can confirm that the folder mounts correctly on the host: DESKTOP-...
user avatar
  • 145
0 votes
1 answer
21 views

How can I make host docker images available to k8s Deployment?

I have a k8s pod that is running docker. My issue is that for the docker images on my host machine to be available within the pod I either have to run the image as a pod or run a docker pull script at ...
user avatar
  • 123
0 votes
1 answer
25 views

Why does php-fpm show nginx's IP while they are on different containers?

I am trying to set up an Nginx server for the purpose of load balancing between 4 Php-fpm servers. You can access my docker configuration files from this Github repository. My containers' network ...
user avatar
-1 votes
0 answers
12 views

What command CMD["tini", "--", "node", "./bin/www"] means?

I am trying to understand what the following command does: CMD["tini", "--", "node", "./bin/www"] I am not sure what is going on in this command please?
user avatar
  • 99
2 votes
1 answer
33 views

How to don't start entrypoint command on "docker-compose up"?

I have multiple Docker containers in a project and I use docker-compose up -d to start containers. This is my docker-compose.yml file: version: "3" services: httpd: image: 'nginx:...
user avatar
0 votes
0 answers
13 views

EKS: kubectl exec does not respect streamingConnectionIdleTimeout

Using EKS with Kubernetes 1.21, managed nodegroups in a private subnet. I'm trying to set the cluster up so that kubectl exec times out after inactivity regardless of the workload being execed into, ...
user avatar
0 votes
0 answers
7 views

Error docker push to own gitlab server installed with omnibus on ubuntu vm with own domain

I set up my own gitlab server on ubuntu vm and I also bought domain from godaddy and link with a record. I can login into registry but cannot push image to gitlab default container registry. My vm ...
user avatar
0 votes
0 answers
7 views

kubernetes master node on Mac and worker node on raspberry pi

I'm new to kubernetes and trying to learn. I have enabled kubernetes through Docker Desktop on a Mac Mini (2020, M1). I've got two services running well on it. Now I'd like to add a worker node that I ...
user avatar
1 vote
0 answers
209 views

Should docker pull fail in an offline server when the specified image is already pulled?

I am trying to set-up kubernetes in an offline server. Part of the installation requires the following docker images, which I have already loaded in the offline server: # docker images REPOSITORY ...
user avatar
0 votes
1 answer
15 views

How do I disable ICMP echo responses within a Docker container?

I want to be able to change the /proc/sys/net/ipv4/icmp_echo_ignore_all file from within my Docker container, but I get the bash: /proc/sys/net/ipv4/icmp_echo_ignore_all: Read-only file system error ...
user avatar
  • 1
0 votes
0 answers
10 views

How to estimate how strong the server needs?

I have one dedicated server on so-you-start / cheaper version of ovh, with below params: Intel Xeon E3-1270v6 4c / 8t 3.8GHz 64GB DDR4 ECC 2400MHz SoftRaid 2x450GB NVME I using this sever for ...
user avatar
  • 1
0 votes
0 answers
7 views

Docker images vs CRI images compatibility in light of dockershim removal from Kubernetes

So at 1.24 Kubernetes removes the dockershim. I was studying docs and if I understand them correctly Kubernetes supports only images in Open Container Initiative format? And Docker image is not the ...
user avatar
  • 63
0 votes
0 answers
14 views

Minimize `docker build` execution time inside Docker-in-Docker containers

The use case: We have several "Release jobs" in Jenkins that build and push a Docker image of the application to a docker registry, update the project version in various files and finally ...
user avatar
  • 13
0 votes
0 answers
10 views

Accessing Pelias Geocoder docker compose from other machine

Following this tutorial, I have a docker image running in a Linux machine, with the Pelias Geocoder service: https://github.com/pelias/docker I can access the service from the localhost, in a browser, ...
user avatar
2 votes
2 answers
83 views

How to verify docker sha256 on hub.docker with docker?

Given an image like this one I want to be able to verify that the image I have matches DIGEST:sha256:6889517fd553d36ed5743827cd81c8f94438bd2502db57e9bbfbfac73e746f5b How can this be done in docker's ...
user avatar
  • 123
0 votes
0 answers
40 views

Is it possible to let container use the host network?

When starting container, is it possible for it to acquire address from the subnet of the host (not from docker0 172.17/16)? I want the container to communicate with "other hosts" on the same ...
user avatar
0 votes
1 answer
12 views

What is the information returned by docker inspect for .Mounts?

Ie, if I do: $ docker inspect -f '{{ .Mounts }}' base-hostSrcNv I might get: [{bind /dir/in/container /dir/on/host true }] The meaning of /dir/in/container and /dir/on/host is pretty easy to ...
user avatar
0 votes
0 answers
13 views

How are containers secured with MACVLAN networks?

Containers cannot be connected both to an internal bridge and to the host network at the same time, according to this question. However, this is what I need; I want a set of containers to be connected ...
user avatar
  • 1
0 votes
1 answer
134 views

GitLab Container Registry: errors: denied: requested access to the resource is denied [...] error parsing HTTP 401 response body

When I run podman push (the equiv of docker push) to get my image up to GitLab's container registry, I'm getting the following error. errors: denied: requested access to the resource is denied [...] ...
user avatar
0 votes
0 answers
10 views

Moving a file (with encrypted token) after building a docker on Jenkins

I have a project with NextJS and I build it using Jenkins. I run my app inside a docker container, and pull my code from Github. In my local project, I have a git-ignored file named .sentrylirc that ...
user avatar
  • 101
0 votes
0 answers
115 views

nginx in Docker - returns "server" directive is not allowed here

I have dockerized an Angular application with the following Dockerfile and nginx.conf. The container works fine in Docker desktop. When deploying in Kubernetes cluster, the container fails to start ...
user avatar
  • 101
0 votes
2 answers
67 views

docker image push does not work

I have created a new docker image with a # docker build -t my-phpapache:7.4 . Now, when I try to make # docker image push I'm logged in to a Docker hub in a browser. I see the errors: $ docker image ...
user avatar
  • 105
0 votes
1 answer
50 views

How can I run apt-get update and apt-get upgrade commands automatically?

I have a docker container where I run a few commands as a root user each time it is created from an image. Is it possible to automate running these commands as a root administrator user each time my ...
user avatar
  • 105
1 vote
0 answers
21 views

How to colorize kubernetes logs?

It's easy enough to enable colorful logs on docker containers (by setting TERM=xterm-256color and running with tty: True). Still, I'm not getting any color when I run kubectl logs/stern on the ...
user avatar
  • 11
0 votes
1 answer
38 views

Azure Devops deploy docker image to ACR using deployment job

I'm trying to deploy a docker image to Azure Container Registry via an Azure Devops pipeline. Now this works fine when I run it with this script: trigger: - master variables: # Container registry ...
user avatar
  • 101
0 votes
0 answers
24 views

HaProxy 2.5 with docker for load balacing 3 physical node cluster

I have k8s cluster 3 physical node and trying to configure load balancing for k8s cluster using haproxy-2.5 docker container in 4th physical node. I want to achieve something like this. I know if I ...
user avatar
0 votes
0 answers
24 views

What is LDAP and how it is configured in Docker containers?

Background- I am new to working with linux and docker, and I have been told to configure LDAP in a "oraclelinux-8 arm64v8" Docker image. (so that kerberos lookup can be done) What I have ...
user avatar
0 votes
0 answers
13 views

How to export directory out of a container to the host upon container exit?

I have a yaml file that creates four containers: three are selenium gird containers and the last contains a pytest script. It works the following way: I start the yaml file with the command: docker-...
user avatar
0 votes
0 answers
20 views

Gitlab CI building dotnet core project with WPF reference

For a CI Project, I am using Gitlabs pipelines to build and create nuget packages. I am using the following docker image image: mcr.microsoft.com/dotnet/core/sdk:3.1 which works for most of my ...
user avatar
  • 101
0 votes
0 answers
17 views

Update to latest patch release using docker-compose

I would like to update gitlab automatically. Our docker-compose.yaml file looks like this: web: image: 'gitlab/gitlab-ee:latest' restart: always hostname: 'example.com' environment: ...
user avatar
0 votes
0 answers
29 views

How to create a service health in docker-compose that waits for another container to close

I'm creating a solution that uses NodeJS to generate a RESTFul API with express. This solution uses MySQL as a database and who manages the migrations and seeders of the database is the sequelize-cli ...
user avatar
0 votes
0 answers
288 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:...
user avatar
  • 115
1 vote
0 answers
12 views

capability to pull docker images to host

We've got a docker container running with a mount to /var/run/docker. It's a daemonset pulling an image every day to the host the pod is running on. containers: - name: updater image: ...
user avatar
0 votes
0 answers
29 views

WORKDIR not working for docker in windows

I have a main.py file and a Dockerfile. The main.py file downloads and saves some .txt files. So, it is very necessary for me to specify the working directory. I am working in a Windows machine. The ...
user avatar
0 votes
0 answers
17 views

Kubernetes pods is failing with error Back-off pulling image "arey/mysql-client"

My machine is offline which has no connectivity to external site, images are pulled from another machine and loaded to the offline machine. arey/mysql-client image is loaded to docker images with tag ...
user avatar
0 votes
0 answers
51 views

Gitlab pipeline failing to checkout repository

I am running a gitlab CI pipeline with the following .yml file: image: buildtools2019 stages: - build build-job: stage: build script: - echo "Starting to build the project" - ...
user avatar
0 votes
2 answers
55 views

Creating container image without docker

Is it possible to build a container image as a simple user account on a system which does not have docker or podman installed? In other words, is there a user-space tool/application which can build an ...
user avatar
  • 103
0 votes
0 answers
89 views

Docker Compose with VPN access

I am having problems in my docker container with a VPN connection: My container is unable to access internal hosts (which are available through VPN connection) I tried temporarily setting network_mode:...
user avatar
1 vote
1 answer
68 views

gitlab container registry: how to test that it's set up and working?

I'm trying to push for the first time to a gitlab project container registry. I am not a gitlab administrator so I can't change global settings. But as far as my project is concerned I've made sure ...
user avatar
  • 115
0 votes
1 answer
144 views

gitlab project registry - docker push fails with invalid reference format error message

I have create a personal access token for my project. in my gitlab-ci.yml I'm trying to create a docker image and then save it in my project's repository. I'm able to login - I see an explicit ...
user avatar
  • 115
4 votes
2 answers
74 views

Docker vs Virtualisation

I am trying to understand the underlining architecture of Docker. The diagram that's been shown everywhere claims that in contrast with Virtualisation technologies such as "VirtualBox", ...
user avatar
  • 143
0 votes
1 answer
29 views

ImagePullBackOff err while pulling docker image in different project in Google Cloud

I am trying to pull a private image from Artifact Registry repo in Google Cloud from a kubernetes cluster running in a different Google Cloud project using kubectl. kubernetes version 1.20.15-gke.1000 ...
user avatar
0 votes
0 answers
39 views

Allow Kubernetes to use NVidia gpu

I have set up a docker image that supports GPU acceleration, and this works just fine - running docker run --rm -it --gpus=all -p 5000:5000 -e PORT=5000 my_app results in my app runnning in GPU-...
user avatar
  • 101
0 votes
0 answers
20 views

Kubernetes YAML with local Docker images?

I have build two docker images via docker build -t name, one is a NodeJS/React frontend and one is a Python API that the frontend should call and get messages from. This is all happening locally on a ...
user avatar
  • 101
0 votes
0 answers
4 views

How to make dependency on docker mounts and volumes resilient against outages?

I'm using a service inside a docker container to generate content. It generates content both on demand and periodically. In order to keep all this generated content from not outgrowing local , I've ...
user avatar
  • 1
0 votes
0 answers
112 views

Docker daemon stop responding in Kubernetes

Some node in my k8s become Not Ready for reason like: "PLEG is not healthy: pleg was last seen active XXXXX ago; threshold is 3m0s" and events like Warning ContainerGCFailed 11m ...
user avatar
  • 1
0 votes
0 answers
37 views

permission denied when trying to bind/unbind /sys/bus/pci/drivers/?hci_hcd from within docker container

Making a Docker service for monitoring USB attached/detached devices and eventually resetting USB controllers using bind/unbind if a device disappears unexpectedly. But getting unbind: Permission ...
user avatar
  • 101
0 votes
0 answers
23 views

Choosing correct docker image (apache, php, extensions)

I want to dockerize a PHP 8.0 fpm application. It should be running on apache and the project depends on composer, npm and some php-extensions (curl, mongodb, xml, ldap). When I install it manually on ...
user avatar

1
2 3 4 5
22