Skip to main content

Questions tagged [docker]

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

155 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
315 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
  • 143
3 votes
0 answers
2k 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
1k 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
249 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
42 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
326 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
1 answer
63 views

AWS ECR Public gives error in CLI

I am trying to push my Nest.js app to an AWS ECR in a public repo. I created an IAM user and attached AdminstratorAccess policy to it and then generated a private key. When I type the following ...
Ahmad Qayyum's user avatar
2 votes
0 answers
77 views

How to deploy dockerized MERN stack app on AWS EC2 instance?

I dockerized my MERN stack app (Next js, node js, MongoDB) and tried to deploy it on the AWS EC2 instance. When I try to access my backend on port 5000 via AWS Public IP, it works fine but when I try ...
Rana Faraz's user avatar
2 votes
1 answer
1k 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
  • 121
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
38 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
916 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
347 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
347 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
78 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
601 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
6k 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
  • 21
2 votes
0 answers
375 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
783 views

Docker convenience script stuck after "Scanning linux images"

I have a Raspberry Pi 2B and a fresh install of Raspbian. I am trying to install Docker, and following the instructions on the site (https://docs.docker.com/engine/install/debian/#install-using-the-...
Julien's user avatar
  • 21
2 votes
0 answers
474 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
635 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
  • 193
2 votes
0 answers
151 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
67 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
369 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
441 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
2 votes
1 answer
71 views

How did docker compose down update the running image?

I'm running an application with docker compose. version: '3.8' services: php: build: context: . ports: - "[::1]:${BACKEND_PORT}:80" frontend: build: context:...
AndreKR's user avatar
  • 150
1 vote
0 answers
242 views

Docker: error while creating mount source path

I am new to Docker. I am trying to run a container on MacOS. However, when I run: docker compose up -d --build I get the following error: Error response from daemon: error while creating mount source ...
mcheong246's user avatar
1 vote
2 answers
148 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 ...
Max's user avatar
  • 111
1 vote
0 answers
178 views

Sharing the containers and images between ctr and docker

The running container displayed in output of docker ps -a could be seen in the output of ctr -n moby container ls. This container was created by the docker engine and one can view it in the same ...
user33456's user avatar
1 vote
1 answer
5k 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
2k 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
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
1 answer
3k 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
1 answer
3k views

How to caching the docker images?

I try to improve the performance of my pipeline stages in gitlab cicd. The Gitlab is self hosted and the Runner runs as docker with docker executor. I recognized, that for both jobs in my stages (test,...
MaKaNu's user avatar
  • 111
1 vote
5 answers
179 views

Automate starting and stopping of multiple containers on single production server

I am doing a project for my university where I have the following requirements: I want to start and stop (docker) containers with different apps I have a singe (university) server to my disposal I ...
Jasper Anders's user avatar
1 vote
0 answers
2k views

Docker compose curl healthcheck on official nginx image not working

We have the following DockerFile FROM nginx RUN apt-get update && apt-get install -y curl \ && rm -rf /var/lib/apt/lists/* COPY nginx.conf /etc/nginx/nginx.conf EXPOSE 443 WORKDIR /...
tech74's user avatar
  • 119
1 vote
1 answer
184 views

How to migrate away from `docker-machine create`?

I have an old script that uses docker-machine create to create an number of Hyper-V VMs and run a server application inside each one, using docker. It was done this way because the application ...
Craig's user avatar
  • 151
0 votes
0 answers
12 views

Run Docker with same user as on local host and own mounted folders

I have a local folder (code) on my system, which belongs to my user. The local folder path is something like this: - home -- my_user ---- work ------ projects -------- code I want to run a Docker ...
Carlo's user avatar
  • 101
0 votes
0 answers
9 views

Intermittent Firefox Installation Failure in Docker CI

I have a docker image to install firefox, that runs as expected locally but fails intermittently on CI. Firefox doesn't get installed, this is what I am doing. FROM node:20 RUN wget -O firefox.tar.bz2 ...
Manav Grover's user avatar
0 votes
1 answer
15 views

How to create a private registry in Kubenetes?

I am trying to create a private docker registry in Kubernetes that can be used by Kubernetes to pull images from. Although I have tried many references but none work, so currently I am referring to ...
Vinay Sheel Sagar's user avatar
0 votes
1 answer
19 views

how to use docker with http protocol to login or pull docker images from local nexus repository?

I have two servers with no internet on them.One of them is my nexus repository with so many docker images on it.As I have no internet on them ,I can't pull any image because of no ssl configured.I get ...
mahdi's user avatar
  • 1
0 votes
0 answers
15 views

One of my several docker containers was randomly shutdown

I have a docker container which was recently shutdown by itself: The container status is as follows, oddly the other containers were still up. I see that containerd was restarted recently and docker ...
Parsa's user avatar
  • 101
0 votes
1 answer
37 views

How to get all the env variables of any docker image?

I am unable to get all the env variables even after the docker inspect <container_id> command it just shows only this much when I inspected the mongo:4 image. "PATH=/usr/...
void_meet's user avatar
0 votes
0 answers
22 views

I can't reach out the database from my pod

I have two servers A with private ip address 10.1.0.2 and B with private ip address 10.1.0.4 on server A I have a docker container that runs postgres database On server B have a pod that tries to ...
Jonas's user avatar
  • 1
0 votes
0 answers
20 views

Gitlab out of memory kills network on VPS

On a VPS (that is not heavily used) with 4 shared vCPU's and 8GB RAM I'm running the following services: Traefik for reverse proxy Portainer for docker management Gitlab, used by 5 people Grafana ...
Postie's user avatar
  • 113
0 votes
0 answers
11 views

bulding docker image for an arm32v7 processor

I managed to build a working docker image on my development laptop, but got an exec format error when I tried to run the docker image on the PC that the container shall run on. My dev PC is an ubuntu ...
pjoltergeist's user avatar