Questions tagged [docker]
Docker images, containers, hub, and everything related to the containerization platform
1,218
questions
0
votes
0
answers
4
views
About user within image/container/host node docker
I am using docker / node:16 base image to deploy our node web projects.
Yesterday, all of them went bust on one host machine, with the problem within the image (I assume).
We publish images to our ...
0
votes
0
answers
18
views
deploy Harbor on Kubernetes via helm
I'm facing an issue with accessing the Harbor after deploying it on Kubernetes using Helm.
Here are the steps I followed:
Download Harbor helm chart:
helm repo add harbor https://helm.goharbor.io ...
0
votes
0
answers
12
views
Bitbucket pipelines dind "Cannot connect to the Docker daemon"
I am trying to run end to end tests on a node repo but it needs the postgres container. When I te
image: docker:dind
pipelines:
default:
- step:
name: Run e2e tests
runs-on:
...
0
votes
0
answers
5
views
WSL+Docker ghost environment
[reposting a question that was closed as off-topic over on SO]
I'm running docker in wsl, and testing my containers by invoking docker-compose from the linux prompt.
Sometimes my docker-compose call ...
0
votes
1
answer
31
views
Conflicts while building AWX-EE custom image
I'm currently building AWX EE custom image with the latest available but it seems latest versions got some conflicts with pip modules. My custom image was working great in July (awx-ee version 22.X 23....
1
vote
1
answer
23
views
Why does every image I build have its own repository?
What does "repository" mean to the build process? Why does every image need a repository?
I guess I should take this question up with whoever architect or team made this naming choice but ...
-1
votes
0
answers
11
views
Clarification on DevOps Exam Task - Compiling 3CS-NGINX, NodeJS App, and Docker Compose
I recently took a DevOps exam for a company and received feedback that I did not understand the question properly. I was given the following tasks:
Task 1 - Compiling 3CS-NGINX:
Clone the Github ...
0
votes
0
answers
21
views
Docker container has a default route I didn't configure
I've set up a semi-optimal IPv6 environment, so nginx running in the container can see the real source IPv6 address instead of the IPv4 userland proxy one from Docker. I confirmed this by looking into ...
-1
votes
0
answers
12
views
Basic Microservice architecture
New to DevOps and Microservices here is the scenario I am trying to acheive
I need a set of docker containers
for my Laravel app
for my vue app that communicates with laraLaravelvel through Rest
...
0
votes
0
answers
43
views
Add K3s agent to server in a docker container (using Tailscale userspace networking)
I have a K3s server running somewhere, connected to Tailscale. I am able to connect regular VM agents to it via Tailscale under normal circumstances. However, I also need to add an agent "node&...
0
votes
0
answers
5
views
Containers in AKS cannot access Azure resources (Failed to resolve URL)
I have an API server (Python Flask) hosted on AKS. When the service starts, it:
Access Azure key-vault to get storage account connection string
use the connection string to perform CRUD jobs on Azure ...
-1
votes
0
answers
8
views
Docker container for sftp and web service
I need to setup a server where
files can be uploaded via SFTP
the same files accessed via HTTPS
The files will be uploaded via SFTP by party A and then downloaded via HTTPS by party B.
The lifespan ...
0
votes
0
answers
36
views
Laravel project under Ubuntu with Docker returns 403 Forbidden
Starting point:
Laravel 9 application, which I want to work with Docker container, I have only the project folder and nothing else installed on my PC.
What I did:
I installed Docker (Docker Desktop), ...
0
votes
0
answers
6
views
How to commit docker changes but select only a subset of changed files
In one of my docker container, I installed a vscode extension. This is a dev container so I want to commit the change into the image.
When I run docker diff container_id, I got lots of files changed, ...
0
votes
0
answers
95
views
Alternatives to 'Docker Compose's integration for ECS and ACI will be retired in November 2023'
We are currently using 'docker compose' to deploy our applications on ECS, and during its usage, we have noticed the following notice:
'Docker Compose's integration for ECS and ACI will be retired in ...
0
votes
1
answer
23
views
How to efficiently copy multiple Docker images between two air gapped repositories?
I need to efficiently copy Docker images between two air gapped repositories. The current method of saving images to disk and transferring them as tarballs is time-consuming, so I am looking for a ...
0
votes
0
answers
26
views
Using docker-engine unable to access containers (inside WSL2) from host network
Here is the scenario, I was using Docker Desktop with wsl backed engine and whenever I used to run a container inside my wsl for example:
docker run -d -p 80:80 somecontainer
It was used to be ...
0
votes
0
answers
8
views
How to run job initialization on different nodes one by one?
I have a multi-node Kubernetes cluster built with microk8s under Ubuntu 22.04. On the cluster, I need to run a job (YAML fragment below), which requires pulling a docker image (during initialization) ...
0
votes
0
answers
5
views
How does docker calculates the time to show the result of health condition of a container?
Here are the commands that I used for reference:
docker run -dt --name tmp --health-cmd "curl -f http://localhost" busybox sh
docker ps
docker ps
docker ps
After few minutes, docker ps will ...
0
votes
0
answers
7
views
How to do client on-prem deployment of machine learning models without exposing the code files and model?
I am working on a project that involves the deployment of my code and ML model files to be deployed on a client virtual machine.
Since this is a proprietary code and model, is there a way to deploy ...
0
votes
0
answers
13
views
How to make master node and worker nodes before installing kubernetes on Ubuntu?
I am trying to install kubernetes on my Ubuntu 22.04 os. I found blogs and videos in Youtube but failed and deleted all. I had hard time when making master node and worker nodes because there was no ...
0
votes
0
answers
17
views
docker.service setting for tls connection
I'm trying to make TLS connection of docker on ubuntu 22.04.
So, I modified /lib/systemd/system/docker.service from default.
The modified docker.service is below.
[Unit]
Description=Docker Application ...
0
votes
1
answer
27
views
Trying to Create a Docker Ansible lab and Cant SSH
I'm trying to setup a mini ansible lab with docker containers. I have 1 Rockylinux based container as the ansible controller, and then (for right now) 1 Rockylinux based container as the host.
For ...
0
votes
1
answer
26
views
Docker Engine not seeing installed Nvidia runtime
I am using Ubuntu 22.04, I installed docker and docker desktop.
After installing the Nvidia docker runtime via the Nvidia docker toolkit, Nvidia runtime is not visible after system restart. I updated ...
0
votes
1
answer
23
views
Github Actions: How to export a variable from within Docker and reuse across steps?
We’re developing embedded software which needs to be compiled inside an SDK container. I’m setting up a CI/CD pipeline so that we can compile, ssh-copy and ssh install it on the remote device. To make ...
0
votes
2
answers
52
views
Mapping-Fehler im Docker Compose
I'm still a newbie in the Docker area. I'm just getting confused about this from this Docker-run command:
docker run -d --name fritzbox_smarthome_exporter -p 9103:9103 \
-v $(pwd)/boxcert.cer:/...
0
votes
0
answers
117
views
Docker Desktop on Mac - Unable to calculate image disk size
I installed Docker Desktop on MacOS Sonoma using brew. It worked fine for a day or so and then suddenly stopped responding - perhaps once the Resource Saver mode kicked in. I see the errors below, ...
0
votes
0
answers
8
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 ...
0
votes
0
answers
19
views
how to secure Kong Admin Api?
I'm setting up the Kong gateway manager locally using Docker.
the requests will be sent to localhost:8000, and admin will be available in localhost:8002.
How can I secure these ports locally when ...
-1
votes
1
answer
11
views
Docker on Centos 7 - "unkown flag: --ip-forward"
I've installed docker on Centos 7 from the official docker-ce repository (followed instructions here). I'm seeing the following error when trying to start the docker service with systemctl start ...
0
votes
0
answers
46
views
Inconsistency in rootless mode configuration
I am reading the Docker documentation regarding the configuration of rootless mode. I don't understand why at one point it says:
[INFO] Make sure the following environment variables are set (or add ...
0
votes
0
answers
40
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 ...
2
votes
1
answer
32
views
What is the syntax error in my docker compose file?
I copied authoritative content at https://github.com/Kong/docker-kong/blob/master/compose/docker-compose.yml
version: '3.9'
x-kong-config: &kong-env
KONG_DATABASE: ${KONG_DATABASE:-off}
...
0
votes
1
answer
70
views
What is the meaning of start-dev?
I have command
docker run --name vy-keycloak -p 8085:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:22.0.3 start-dev
It runs success. What is the meaning of ...
0
votes
0
answers
28
views
Can't get connected to mysql db using sequelize and docker
I am Trying to connect to Mysql database using docker-compose in node.js
ConnectionRefusedError [SequelizeConnectionRefusedError]: connect ECONNREFUSED 192.168.32.2:3306
here is how my docker-...
0
votes
0
answers
19
views
Best approach for deploying multiple (Docker) container web app
I have a fairly simple Django web app which I want to deploy somewhere.
I am keen to automate and simplify as much as possible and for that reason I am hoping to avoid having to deploy directly to one ...
0
votes
0
answers
11
views
I’m facing drastic slowness in my web Appa running on containerd and kubernetes vs docker
I’m using containerd runtime for kubernetes ….I tried without setting resource limit and with limit 10 cores and 4Gi RAM
When I compare the performance in the same node, same container in docker vs ...
0
votes
0
answers
67
views
Docker Network Interfaces Not Appearing in WSL Ubuntu or Windows CMD/Powershell
I am currently embroiled in a project that leverages tools such as Docker, docker-compose, and other networking components. I set up a docker-compose file with Docker networks of bridge type, but I'm ...
0
votes
1
answer
2k
views
Docker on Ubuntu, getting ERROR: BuildKit is enabled but the buildx component is missing or broken. Install the buildx component
I ran the command sudo rm -rf ~/.local/share/containers/ and now I'm getting,
ERROR: BuildKit is enabled but the buildx component is missing or broken.
Install the buildx component to build ...
0
votes
0
answers
143
views
Docker torchserve NS_ERROR_NET_RESET
I followed instructions here in order to run a docker container running a torchserve instance.
The image build went fine :
docker build -t docker_torchserve .
and the running container as well.
...
2
votes
0
answers
114
views
How to run nerdctl run inside a container?
This is not for building inside a container, this is for running containerized CLI tools in a Job. I know the security implications. This is a lateral move security wise from DooD just to get us to ...
0
votes
0
answers
28
views
Rebooting A Windows Docker Container
I had to install a Windows feature on my docker windows container and it requires me to reboot the container. Trying to restart with 'shutdown.exe -r' and 'docker restart ' does not do an actual ...
0
votes
0
answers
41
views
define an ENV in Dockerfile not working
I wrote a Docker file as below. However I define a system variable (which is necessary for NPM build) in many formats and multi where in that file, after creating image and running container I need to ...
0
votes
0
answers
59
views
Monitor Container Load Average with Grafana Agent and Cadvisor (Docker Integration)
I’ve configured Docker integration on Grafana Cloud, utilizing Cadvisor and Grafana Agent to monitor Docker containers, and it’s been effective for most metrics. I’ve been referencing the metrics ...
0
votes
2
answers
27
views
How can I use two different docker container on the production server (after pushing to DockerHub)?
I have the docker-compose file with two containers. "nginx" container depends on "demo" (it's python django backend).
version: '3.9'
volumes:
static:
services:
demo:
...
0
votes
2
answers
52
views
Using docker as a substitute for VM for testing
I'm new to docker and I want to start using it in the following scenario.
For example, I need to implement an Asp.Net Core Web API and deploy it to a linux system. The development is done on a Windows ...
0
votes
1
answer
119
views
Windows 10 docker desktop keeps showing Kubernetes is starting
I checked the Enable Kubernetes in windows Docker Desktop and it keeps circling and showing Kubernetes is starting...
I searched and couldn't find any proper answer. Some advises are about deleting ...
0
votes
0
answers
42
views
Docker build reset file ownership after each layer built
I've noticed a new strange thing where file permissions reset while building a docker image.
Consider the following Dockerfile:
FROM ubuntu
RUN mkdir -p /home/user && \
useradd -l -u ...
0
votes
2
answers
368
views
Chown inside docker container is not changing directory owner
I can't change ownership of newly created directory inside of docker container. It is not a volume and chown runs correctly for all my colleagues - the only difference is I'm running docker on linux ...
0
votes
1
answer
31
views
docker: homedir does not belong to the user
I created a Dockerfile which creates a new user. When I run this Dockerfile I see that the user is created, his homedir is created as well, but the homedir is owned by root - and even "chown"...