Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
6 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=...
1 vote
1 answer
95 views

windows docker location of file env.conf

I found that on linux you can configure some settings inside file: /etc/systemd/system/docker.service.d/env.conf . I am wondering where I can find it in windows wsl?- purpose is to set those two ...
0 votes
1 answer
149 views

docker exec and docker run do not work with names

I ran docker run busybox a few times with success. docker run busybox echo "hello from busybox" Output: hello from busybox docker ps -a shows the following: CONTAINER ID IMAGE ...
1 vote
1 answer
18 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-...
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 ...
0 votes
0 answers
31 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 ...
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 ...
2 votes
1 answer
68 views

Is it good or ok or a bad practice to add Dependency via a RUN command in Dockerfile?

I am trying to create an image using a multi-stage build for a node project. I am using NestJs for the project since it uses TypeScript, and if I install only production dependency in the production ...
2 votes
2 answers
955 views

Send command to docker image while start in Jenkins file

In scripted Jenkinsfile if I need to send a command to Docker image, I can do like this: docker.image('mysql --default-authentication-plugin=mysql_native_password') How can I do the same in ...
0 votes
1 answer
24 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 ...
2 votes
1 answer
122 views

ClamAV server on Azure - how to secure traffic from services?

I would like to have ClamAV service (deployed from clamav/clamav image on Docker hub) which can be called by other services on the same subnet. However, clamd exposes API over TCP and there is no ...
1 vote
3 answers
62 views

How do I create a Docker image from a container without configuration changes?

I am aware of two ways of creating Docker images: Build the image using a Dockerfile Use docker commit <container_id> against a running container with changes. I find changing a Dockerfile ...
1 vote
0 answers
189 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 ...
3 votes
2 answers
4k views

Secrets in Docker without Swarm

I am using Docker, but not Swarm (or any other orchestration) for a project. Is there a way to leverage Docker Secrets without Swarm?
0 votes
1 answer
115 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 [...] ...
-1 votes
0 answers
10 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?
2 votes
1 answer
30 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:...
0 votes
2 answers
65 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 ...
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, ...
0 votes
1 answer
170 views

How to start a container with NFS volume if NFS server is offline?

This issue is similar to one posted a couple of years ago but with a slight difference. I'm trying to identify how to spin up a Docker container which has an NFS Volume mount whether or not the NFS ...
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 ...
0 votes
0 answers
6 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 ...
1 vote
1 answer
316 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 ...
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 ...
0 votes
1 answer
14 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 ...
0 votes
1 answer
34 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 ...
0 votes
0 answers
9 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 ...
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 ...
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 ...
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, ...
1 vote
1 answer
133 views

Package installed using Dockerfile not available on Jenkins pipeline stage

I'm having sort of a weird problem with my Jenkins pipeline. I've defined a Dockerfile which installs some tools I need for my CI/CD pipeline, such as node, npm, sfdx, and sfpowerkit (a plugin for ...
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 ...
0 votes
0 answers
39 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 ...
0 votes
1 answer
23 views

Check TZ in Container Image without creating instance?

I have a requirement to assure that the container image we build runs in UTC only. I'd like to avoid starting it up just to check the link on /etc/localtime. I thought maybe a tool like dive that ...
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 ...
0 votes
0 answers
11 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 ...
0 votes
1 answer
69 views

Gitlab build from multiple repositories - git submodules

I have gitlab repo ZERO (project) which serves as a code base for multiple websites (repo ONE, TWO, THREE..), these are also gitlab repositories. I am using gitlab CI/CD options, I want to be able to ...
22 votes
3 answers
18k views

Difference between chroot and Docker

I don't understand the difference between docker and chroot. Yes its nice in terms of the packaging the registry. But somehow I get the feeling its just chroot with extra bells and whistles. I know I'...
0 votes
0 answers
166 views

Use buildx in Jenkinsfile for platform specific build

I'm currently building my docker image declaratively in a Jenkinsfile by: app = docker.build("...") Now I need to generate a platform specific build for ARM64. For this purpose docker ...
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 ...
0 votes
0 answers
96 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 ...
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 ...
2 votes
2 answers
2k views

How to automatically update Swarm services when the Docker daemon restarts

I'm using Docker Swarm, and I have condition: always in the restart_policy of my compose file, so my services are started automatically when the system reboots or the Docker daemon is restarted. What ...
1 vote
0 answers
20 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 ...
0 votes
1 answer
20 views

Docker cloud hosting with persistent storage

I need to find a cloud provider to host a simple docker service but with a persistent storage attached. I know I can achieve this using GCE (VM + docker + volume mounted from VM) but this looks a bit ...
4 votes
2 answers
73 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", ...
0 votes
0 answers
22 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 ...
0 votes
0 answers
22 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 ...
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-...
0 votes
0 answers
17 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 ...

1
2 3 4 5
22