Questions tagged [docker]

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

245 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
4 answers
3k views

ERROR: Unable to read database state: No such file or directory

I was trying to install Photon by pulling the docker image. But when I run docker build -t photon . I am getting the below error. ---> Running in 3076fb42ef8b ERROR: Unable to read database state:...
Anonymous Platypus's user avatar
3 votes
0 answers
85 views

Measuring image pull latency in k8s cluster

I maintain a Kubernetes clusters that pulls a number of images (mostly from Docker Hub, but also some from GCR and GHCR). I am interested in building a dashboard to measure the amount of time it takes ...
Derek Brown's user avatar
3 votes
0 answers
1k views

How to boot the system in cgroup v2 mode?

I used the following commands to install docker in rootless mode. curl -sSL https://get.docker.com/rootless | sh systemctl --user start docker.service systemctl --user enable docker.service sudo ...
Ahmad Ismail's user avatar
3 votes
0 answers
895 views

Where are Docker containers stored on disk?

I'm learning about Docker. I feel stuck at the moment, I think that I have some wrong concepts about how Docker works, and that shadows how it actually works, but I can't really locate the problem. I ...
szeb's user avatar
  • 153
3 votes
1 answer
237 views

Is running linux container on windows aws instance possible?

what I'm trying to achieve is running a Linux(ubuntu LST) container inside a windows server 2019 OS. The problem is that the windows OS runs as an AWS instance. There have been problem for me trying ...
dor00012's user avatar
  • 131
3 votes
0 answers
1k views

Remote connection from Docker container by FTP

I built my docker image and run it: docker run --rm -P -d test:latest Then I entered the command and opened connection: ftp open XXX I successfully connected and entered user data. After that I ...
Leonid's user avatar
  • 91
3 votes
0 answers
38 views

How can I allow admins to run Django Admin CLI commands against a Django application deployed live as part of a Docker Swarm cluster?

Specifically, I want them to run the following: https://django-q.readthedocs.io/en/latest/monitor.html I am looking to write a minimal wrapper-script which would simply allow them to run a single ...
dnk8n's user avatar
  • 183
3 votes
0 answers
307 views

Spinnaker not showing images in pipeline trigger

I have a Spinnaker pipeline which I am trying to add an automated trigger from an ECR repo. Spinnaker lets me add the docker registry as per the following spinnaker doc link, however I am unable to ...
joshk132's user avatar
  • 465
2 votes
0 answers
197 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 ...
Shanteva's user avatar
  • 133
2 votes
2 answers
1k views

How do I get real client IP inside docker container for logging to the database

I have a following docker compose file: version: "3.8" services: postgres: image: postgres:11 volumes: - myapp_postgres_volume:/var/lib/postgresql/data ...
RajS's user avatar
  • 141
2 votes
2 answers
4k views

Docker.Core.HttpBadResponseException: {"message":"2 errors occurred:\n\t* provisioning docker WSL distros: deploying

2 years cannot fix error install Docker on Windows Docker.Core.HttpBadResponseException: {"message":"2 errors occurred:\n\t* provisioning docker WSL distros: deploying \"docker-...
Vy Do's user avatar
  • 165
2 votes
0 answers
33 views

How to change log source in Nomad?

I have a CLI application which runs on Nomad, task "create-cli" { driver = "docker" config { image = "cli-app:local" tty = true ...
Nikhil.Nixel's user avatar
2 votes
0 answers
22 views

Linux Cloud/Windows On Prem Deployments

I have sort of a unique problem where I have a cloud deployment (linux) that needs to be ported to an on-premise deployment (windows). The constraint is that this is medical software and hospitals ...
Gillespie's user avatar
  • 121
2 votes
0 answers
803 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 ...
Jesse's user avatar
  • 121
2 votes
0 answers
296 views

Run commands on docker container and sync automatically with host

I Dockerkized a MENN(Nextjs) stack App, now everything works fine. I run into issues when i need to install npm packages. let me first show you the structure src/server/Dockerfile FROM node:14-alpine ...
uneeb meer's user avatar
2 votes
1 answer
290 views

Docker performance when running on LVM

It seems that when using overlay2 storage driver, docker is much slower when using a LVM compared to without a LVM (ext4 filesystem in both cases, same machine). Questions: Is this intended/expected? ...
MRalwasser's user avatar
2 votes
0 answers
76 views

How do I deploy and configure a MariaDB (Mysql) image for remote connection?

Specifically: I want to deploy a docker mariadb image to Heroku, that my other heroku app will connect to, in part because I want that skill, in part so I can extend the architecture in the future, ...
gcr's user avatar
  • 121
2 votes
0 answers
555 views

Pipeline could not pull repo in GitLab CI/CD

I have a the repo with test CI pipeline, which is the following: # .gitlab-ci.yml image: name: gcc build: stage: build script: - echo 123 And it fails: Running with gitlab-runner 14.3.1 (...
Ivan's user avatar
  • 121
2 votes
2 answers
5k 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 ...
MRashad's user avatar
  • 31
2 votes
0 answers
366 views

Self assigned TLS sertificate traefik

My problem is self assigned cert instead of lets-encrypt cert docker-compose.yml: version: "3.7" services: traefik: image: traefik command: - --api - --providers....
pagislav's user avatar
  • 121
2 votes
0 answers
459 views

Connection refused when CURLing to docker container from within Jenkins pipeline

I have a situation with a CI Pipeline I'm trying to implement using Jenkins and Docker . Inside my pipeline I want to: download a python uwsgi web app, build it in a docker container, run it, then ...
remus2232's user avatar
2 votes
0 answers
611 views

Allowing all apps/users access to folder - S3FS-FUSE

I'm running an application on AWS EC2 Ubuntu instance, here's what I've done: - I've mounted S3 bucket as folder with s3fs-fuse using this command (unfortunately as root : sudo): sudo s3fs ...
Tlink's user avatar
  • 183
2 votes
0 answers
148 views

Can you use docker-machine from Bitbucket Pipelines?

I have some servers where I have nginx installed on the base system in reverse proxy mode, and then use Docker deployments to push out containers where just the local HTTP port is exposed. We don't ...
mpdonadio's user avatar
  • 131
2 votes
0 answers
60 views

Issue building deb package using Docker/Windows

I am trying to create a way for our developers to be able to build deb packages from their Windows machines. We would like to reuse what we have for *nix so I've written a few batch scripts which are ...
joshk132's user avatar
  • 465
2 votes
0 answers
364 views

Should I use systemd or docker-compose to replace Upstart for keeping Docker containers running on my systems?

We are talking about Docker containers as sysdig, consul, fluentd, mesos-slave, etc. that we are running on almost all machines. Currently we are using Ubuntu's Upstart and CoreOS's Fleetctl. We're ...
ujjain's user avatar
  • 241
2 votes
0 answers
437 views

Using docker cloud from jenkins running on local osx docker

Hopefully someone can help, I've found lots of information online but as I'm brand new to both jenkins and docker, I'm having a hard time sorting out which suggested solutions happen on the what ...
Iain Duncan's user avatar
2 votes
0 answers
2k views

Can not find save handler 'redis' - session startup failed - for PHP

I am getting this error while loading index.php file. Warning: session_start(): Cannot find save handler 'redis' - session startup failed in /var/www/html/index.php on line 2 My index.php code ...
Gaurav Bhaskar's user avatar
1 vote
0 answers
70 views

Promtail vs. Grafana Agent

I'm running a couple of containers in a Docker Swarm and am setting up a logging system using Grafana Loki and Grafana (up to ~50GB/log per day max). For log shipping, I'm partly scraping container ...
honest_annie's user avatar
1 vote
0 answers
153 views

How docker images are identified with sha?

There is an official busybox:1.36.1 docker image on Dockerhub (link). It has 3 different sha: when I pull it, I see Digest: sha256:2376a0c12759aa1214ba83e771ff252c7b1663216b192fbe5e0fb364e952f85c ...
AntonioK's user avatar
  • 121
1 vote
0 answers
462 views

How to find dockerhub image tags using given docker image ID (sha)?

I have a server running docker containers for years. Containers was started from dockerhub images by tags, which do not include a specific version: $ docker ps | grep redis 0123456789ab redis:alpine ...
AntonioK's user avatar
  • 121
1 vote
1 answer
3k views

Docker WWWUSER e "WWWGROUP variable is not set

I just created a project in WLS with Laravel using the command: curl -s https://laravel.build/example-app | bash When trying to use the command docker-compose exec app bash it returns the this error: ...
André's user avatar
  • 11
1 vote
1 answer
1k views

How can I make an image out of a k8s specific pod container

I have made a pod, and it has only one container, I've been able to connect ot it by using kubectl exec -it -c <container_name> <pod_name> bash And I've installed and done several stuff on ...
Eugenio.Gastelum96's user avatar
1 vote
0 answers
140 views

XRDP/VNC not working in Ubuntu 22 container

I'm trying to create a Dockerfile based on Ubuntu 22.10 that has some way of remote access (XRDP/VNC/etc.) I basically installed xfce4 along with xrdp, according to guides on installing it on linux ...
Orel's user avatar
  • 11
1 vote
0 answers
19 views

Docker Postgres images with data

I have a bunch of DB backups used for QA and Integration Testing. From time to time, the schema of these DBs gets updated. I thought of Building Images for each DB instance and commit changes after ...
xvan's user avatar
  • 111
1 vote
0 answers
57 views

Connecting from Docker container to WSL2 physical machine

We're currently working on porting a stack of NET 4.7 projects to Linux/Docker. Since we're doing it one project at a time, there needs to be network connectivity between Windows projects running on ...
gitzko's user avatar
  • 11
1 vote
1 answer
701 views

Can't change ownership of folders and files in Docker containers

I am having these two dockerfiles which in both I am adding the command RUN chown -R www-data:www-data /var/www/html to change the ownership to www-data user. The containers seems to build ...
ltdev's user avatar
  • 111
1 vote
0 answers
126 views

What are minimum permissions required to mount loop devices in Docker container?

Trying to harden following to avoid using --privileged. $ docker run --interactive --privileged --rm --tty --volume ${HOME}/shared:/shared ubuntu:20.04 bash $ cd /shared $ ls disk.img $ losetup --...
sunknudsen's user avatar
1 vote
0 answers
168 views

Docker Container in host mode - Reverse proxy

I have an issue with the docker network host mode. Basically I have a Node.js container running on a local network and I need to access it via a ssh tunnel from a server on the cloud. The server in ...
Bastien's user avatar
  • 11
1 vote
0 answers
449 views

Running Jenkins controller and agent with docker compose - is it possible?

The Jenkins controller and Jenkins agent are supposedly able to be run in Docker; Under Jenkins' official installation instructions, Docker is the first option listed: User Handbook -> Installing ...
KernelDeimos's user avatar
1 vote
1 answer
553 views

I cannot exec into a docker container running in ECS

I'm attempting to login to a container (from ECR) deployed into an AWS ECS cluster. For what it's worth I'm using the docker compose/ecs integration to deploy this cluster. My docker compose file is ...
mwill4321's user avatar
1 vote
0 answers
168 views

Rootless Network not linked to docker0 interface

I have installed docker in rootless. When I start my services with docker-compose. When I do docker inspect, the rootless containers are on the network 172.22.0.0/16 But, the host machine network ...
Steven Miller's user avatar
1 vote
0 answers
42 views

How do I ignore errors with volumemounts in Kubernetes

We have a container running with a CIFS share as volumeMount: volumeMounts: - name: test mountPath: /mnt/test/lt145 - name: test hostPath: path: /mnt/test/lt145 lt145 stands for laptop ...
Serve Laurijssen's user avatar
1 vote
1 answer
7k views

How do I make my AMD GPU available within a docker image based on python:3.9.10

I'd like to do some machine learning on my AMD 6800 XT gpu within a python image based on python:3.9.10. I can confirm that the GPU is available outside of the image (in a wsl2 instance). However, if ...
quant's user avatar
  • 155
1 vote
2 answers
814 views

Combine Helm charts or leave separate?

I'm new to Helm and my first task was to recreate a simple pipeline. This pipeline is just: PostgreSQL -> Spark, with ELK monitoring the instances. Someone mentioned I may be able to combine all of ...
Hustlin's user avatar
  • 11
1 vote
0 answers
475 views

Why can't Headless Chrome in Docker reach my Docker host, while curl can?

Context I am currently working on a PHP (Drupal) project for which I need to render a PDF. In the past I have worked with several PHP libraries to generate PDF's. While some work better than others, ...
vrijdenker's user avatar
1 vote
0 answers
491 views

kubernetes daemonset fails to pull docker image from the cluster

I am having issues with my Kubernetes cluster daemonSet. I have deployed this yaml file on my cluster. It looks like the daemonSet is failing to pull the docker image from the registry. apiVersion: ...
hxugox97's user avatar
1 vote
1 answer
2k 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-...
quant's user avatar
  • 155
1 vote
0 answers
1k 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 ...
Panagiotis's user avatar
1 vote
0 answers
264 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 ...
Simon's user avatar
  • 111
1 vote
0 answers
36 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: ...
Serve Laurijssen's user avatar

1
2 3 4 5