Questions tagged [docker]
Docker - An open platform for distributed applications for developers and sysadmins.
1,763
questions
0
votes
1
answer
57
views
Docker Error : An unexpected error occurred, Restart Docker Desktop
I have installed Docker Desktop on Windows 11 using WSL 2 as the base.
It seems to be working fine internally.
However, every time I boot up or go to the settings screen,
I get the following error at ...
0
votes
1
answer
14
views
How do I access my Windows directory from docker running on wsl?
As an example, I have installed Audioserve on Docker running Ubuntu via WSL on Windows.
I would now like to add my audio folder but can not navigate to my Windows folders where they exist as I can ...
0
votes
0
answers
10
views
Ubuntu/Docker stops routing UDP traffic for pihole
I recently setup a pihole container on Ubuntu Server 22.04 via a docker-compose.yml file with network_mode: 'host' so that the traffic can be correctly routed to the UDP services running inside the ...
0
votes
0
answers
21
views
Docker containers unable to resolve dns on CentOS 7
it's my first post here, let's hope i'll do ok!
I'm migrating to a new vps, and it runs on CentOS Linux release 7.9.2009 (Core), and unfortunatelly the host wont allow me to change to a distro that i'...
0
votes
0
answers
18
views
Docker cant install any packages
I just started with docker.
FROM ubuntu
RUN apt-get update
RUN apt-get install apache2 curl apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-curl vim
RUN apt-get install apache2-utils
...
0
votes
1
answer
24
views
How to skip the password typing when installing library
I installed the library with.
$sudo apt-get install slapd ldap-utils
While installing it stops and asks,
please enter the password for the admin entry in your ldap directory.
I am using Dockerfile, ...
0
votes
0
answers
23
views
Why would Docker Desktop unpause itself in Windows 11
Given:
Docker Desktop (latest version) Version 4.19.0 (106363)
Windows 11 Pro 22H2
When I pause Docker Desktop, after a few minutes it will unpause itself. Anyone know why this might happen?
0
votes
0
answers
55
views
Zero downtime deployment for nodejs
At my company we have a nodejs api, with a front end applcation.
Currently it is a systemd service, and a nodejs cluster.
When we deploy a new version, we restart the systemd service and the service ...
0
votes
0
answers
53
views
Docker on Windows is very slow
I have a Docker on Windows 10 which uses Ubuntu 20, WSL2, ... but it is very slow.
I tried to set up confuguration in .wslconfig file which looks like
# Limits VM memory to use no more than 4 GB, this ...
2
votes
1
answer
20
views
Why container terminates, despite I have an interactive docker exec command running?
I have the following container which I've created using the following command:
docker container create --name="my-service" ubuntu:latest sleep 120
When I start docker container start my-...
0
votes
0
answers
29
views
Putting Short SHA in ENV in dockerfile, when built from Quay build trigger
I'd like to access the Short SHA (from latest GitHub commit) via an ENV variable inside my Dockerfile. But, my build is kicked off by a Quay build trigger, so it doesn't appear I can use an ARG. Is ...
0
votes
0
answers
17
views
Build Docker image on tmpfs
I have a Dockerfile that change file permissions to various folders, one of that is a node_modules
RUN chown -R 0:0 . ...
0
votes
1
answer
16
views
Adding a user to an ubuntu linux group within a shell script
I'm writing a bash script to set up a docker application along with configuration etc. It's intended to run in a fresh Ubuntu install and be fully automated - just hit return and wait (albeit ...
0
votes
1
answer
23
views
Docker containers visible in Portainer but not in Docker CLI
I'm trying to access my docker containers through the CLI, usually I manage them through Portainer, they all show up there, no problem :
But when I do docker container ls , I get nothing .
My ...
0
votes
0
answers
62
views
My windows host machine Can't access docker http service
I am learning docker,this is my dockerfile . I start a http service in docker and expose 9999 port,here is the content:
FROM golang:1.20
LABEL authors="tom"
WORKDIR /app
COPY . /app
RUN ...
0
votes
0
answers
49
views
How to use mysql commands in lando environment?
I tried to test some different mysql commands in a script running in a lando container dedicated to a drupal installation. I run the setup as described in the getting started guide. Everything is ...
0
votes
1
answer
61
views
Client.Timeout running Docker in Fedora 37
I have recently installed Fedora 37 (KDE) and tried to install Docker. I followed the instructions at https://docs.docker.com/engine/install/fedora/.
When run sudo docker run hello-world I get a ...
0
votes
0
answers
28
views
Optimizing a mono-CPU application in a docker environment (multi-core vs multi-instances)
I have a simple, CPU-bound, mono-CPU application running in a docker container.
Indeed it fully uses a single CPU on the instance when processing work.
As I understand, there are two main approaches ...
1
vote
1
answer
64
views
Permission issues when binding mounting a Fuse mount to a Docker container
Ok, I have an interesting one I could use everyones help on.
I am using "rclone mount" to mount a remote directory to my host (Ubuntu Server). I then want to use Docker Compose to set the ...
0
votes
1
answer
36
views
I am having trouble exposing services on home network to the internet
I have a one of those HP mini PCs that I use as a home server and it has some applications running in docker containers. Now I want to share some of these with my friends and communities I am part of ...
0
votes
1
answer
31
views
How to separate the container folder and images folder in Docker WSL2?
Ok, there is a post about changing the location of the Docker data, but what if I need to place the containers' filesystem on one drive (SSD) but keep images on another (HDD)?
Is there a way to do ...
0
votes
1
answer
262
views
How to fix Fix the APT repository errors
How to fix Fix the APT repository errors I'm using Debian GNU/Linux 9.13 (stretch), how can i fix this update error ?and import the Docker GPG key?
root@test:~# apt-get update
Ign:1 http://security....
0
votes
0
answers
75
views
"Invalid reference format: repository name must be lowercase" when installing via Docker
I'm trying to install SeaDAS via Docker and this should be the code to enter in the windows PowerShell:
docker run -v $HOME/ocssw:/root/ocssw-v $HOME/seadasClientServerShared:/root/...
1
vote
1
answer
119
views
"At least one invalid signature was encountered." in all Ubuntu Docker images in macOS
I'd expect this command to run without error:
docker run --rm ubuntu:focal apt-get update
however, I get instead:
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Err:1 http://ports....
1
vote
0
answers
59
views
Persist Prometheus data from a Docker Container
I'm running Prometheus and Grafana from docker-compose and basically it works. But I don't get my prometheus data to persist on my host machine.
As soon as I switch my volume settings from
---
version:...
0
votes
1
answer
58
views
Portainer business edition fails to load container list with error
Error message is:
2023/04/25 10:13AM ERR
github.com/portainer/portainer-ee/api/docker/images/status.go:204 >
error when fetch remote digest for image |
image=docker.io/vaultwarden/server:latest
...
2
votes
1
answer
400
views
Postgres docker error "data directory "/var/lib/postgresql/data" has wrong ownership"
I am trying to start a postgres container using docker
I have tried using multiple versions of postgres docker images
I have tried using volumes as mentioned here
tried setting POSTGRES_USER ...
2
votes
1
answer
125
views
What is active-trader-pro cask in Homebrew?
Could not find any useful information about it. Also https://formulae.brew.sh/ does not have any cask named as it is.
❯ brew install docker
Running `brew update --auto-update`...
==> Auto-updated ...
0
votes
0
answers
33
views
Exit from Docker Container when C/C++ build fails
I am wondering if is it normal to exit from Docker Container when my application has an error in the source code.
I inherited that Docker image (Ubuntu 18.04) from a previous colleague, I don't know ...
1
vote
0
answers
659
views
Ubuntu Docker Desktop - docker engine stopped
’m new to docker and have successfully installed docker desktop on my ubuntu 22 machine and had it working as expected.
However on reboot of my laptop docker desktop shows docker engine stopped.
...
1
vote
1
answer
178
views
How to enable hairpin NAT between docker containers using bridge network
We have 2 docker containers running on the same host using bridge network (host network isn't an option due to port conflicts).
Container B is listening on port 9000 which is a service open on the ...
1
vote
0
answers
44
views
How do you remotely connect to a docker daemon on Windows WSL2 backend from another machine's docker client through a VPN?
I tried setting hosts array in the Docker Engine configuration (json) file inside the Docker Desktop interface. The VM did start successfully for 127.0.0.1.
Tho Docker Desktop UI is stuck spinning ...
0
votes
0
answers
93
views
xinetd and rsyslog service never start in docker (from ubuntu 22.04 on RHEL9)
I need to deploy a service designed to run on Ubuntu (or another distribution with the same base) on an RHEL9 server.
I thought that the best solution was to deploy it in docker.
So I created a docker ...
0
votes
0
answers
679
views
error: response from deamon: failed to create task for container to create shim task
I'm trying to run docker run hello-world but i'm getting this error:
error: response from deamon: failed to create task for container to
create shim task> OCI runtime create failed: runc create ...
1
vote
1
answer
227
views
Run both Docker and Virtualbox on Linux? Or Docker within VM?
Short version: I think I messed up wanting to run both Docker and Virtualbox on Linux at the same time and I'm thinking I should I migrate my docker setup into its own virtual machine?
System Summary (...
-1
votes
1
answer
70
views
How to fix MySQL installation in Ubuntu:20.04 Docker container
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
...
Cannot stat file /proc/3352/fd/0: Permission denied
Cannot stat file /proc/3352/fd/1: ...
4
votes
0
answers
413
views
GPG Error on APT-GET docker container (Ubuntu 22.04)
I am trying to just apt-get update on a ubuntu:22.04 docker container. On my local machine, when I spin up a new ubuntu:22.04 docker container and run apt-get update, no error occurs. However, on my ...
0
votes
0
answers
15
views
Docker nginx image optional tls option
I need to create a nginx docker image, which can be used to configure optional TLS/SSL certificates.
When no certificate is provided, nginx should work as reverse proxy on port 80 and do its job. If a ...
1
vote
1
answer
544
views
Docker container can't connect other containers on same host with published ports using outer address
I have Linux Mint host with docker(20.10.12).
On this host there are two containers, created with simple docker run, no configuration of networking was provided.:
mysql, with published port 3306,
...
4
votes
1
answer
130
views
In a WSL2 distro - what determines the files that appear under: /wsl/{some-other-distro}
The Context
I understand that docker-desktop's WSL2 backend works by creating 2 distros: docker-desktop & docker-desktop-data.
I can see the filesystems of these distros mounted in my Ubuntu WSL2 ...
0
votes
1
answer
102
views
Best way to automatically update docker container to latest image version from a Github action?
I have a server that I deploy many of my personal projects to. These projects are stored & built on Github and deployed automatically via Github actions. I originally did this via the SSH Deploy ...
0
votes
1
answer
101
views
Nginx proxy_pass with custom variable
I have a question regarding the proxy_pass and dynamic subdomains.
on my server, I have a site_block which looks like this:
upstream mydockersite{
server 127.0.0.1:8081;
}
server {
...
0
votes
0
answers
79
views
Start nginx without host container being available
For local development, I have a suite of 5 sites.
Each site runs in its own php-fpm container.
All sites are served by a single nginx container, which contains .conf files for all the sites. They ...
0
votes
1
answer
127
views
building with docker compose v2 fails but legacy docker-compose v1.29.2 and docker build succeed
I have this Dockerfile
FROM alpine/git as clone
WORKDIR /keycloak
RUN git clone https://github.com/maturbet-volta/nexus3-keycloak-plugin.git
WORKDIR /cargo
RUN git clone https://github.com/sonatype-...
1
vote
0
answers
111
views
How to logrotate Docker containers with journald log-driver
I would like to achieve log rotation for Docker containers, but also preserve logs on Docker container recreate (docker compose up --force-recreate). Local driver seems perfect (it allows custom file ...
0
votes
0
answers
76
views
Nginx reverse proxy not working with Docker
I am running my node app (a REST API) on an AWS EC2 ubuntu instance that is already connected to my domain, let's call it example.org. I want to access my API on example.org/api/v1.
This is my default ...
0
votes
2
answers
235
views
Nextcloud Docker status keeps "Restarting (255)"
I'm running a Nextcloud instance in docker-compose on my Raspi 4 at home for some years now and update the images about every two months.
My pi stopped working during todays NC update from 25.0.3 to ...
0
votes
1
answer
150
views
Change Policy of Microsoft Edge with JSON
I'm used to changing Policy in Chrome by adding the .json file to /etc/opt/chrome/policies/managed in Linux
I'm trying to apply the same to Edge as I'm seeing some policies are no more available in ...
0
votes
1
answer
507
views
"ERROR: cannot copy to non-directory" when copying to WORKDIR?
I am simply trying to copy all the contents of the current directory into the docker image. Why is the WORKDIR not allowed as a destination?
from ubuntu:20.04
WORKDIR .
ENV TZ=America/Los_Angeles
RUN ...
1
vote
1
answer
2k
views
Docker init failed - WSL still holding onto handles
I tried to restart computer for Docker because I made a .wslconfig file but it throws me this error:
An unexpected error was encountered while preparing a WSL distro
destination directory.
The most ...