New answers tagged

0 votes

Unable to access the path inside Docker Desktop Virtual machine where Kubernetes has mounted the volume

The persistent volumes are stored in the docker-desktop-data virtual machine. On my Windows 11 system the hostPath: /var/lib/k8s-pvs/data-pg-dev-postgresql-0 Is found in: \\wsl.localhost\docker-...
0 votes

EKS Pods with ephemeral-storage constantly evicted

TLDR: Either don't use ephemeral-storage limits at all or use them on all containers in the pod. I guess you don't have ephemeral-storage limits set for all containers in that particular pod. ...
  • 101
0 votes

Restart docker container in privileged mode

ID=$(docker run -it --name ubuntu -d ubuntu 2>&1|tee|tail -1) docker inspect --format='{{.HostConfig.Privileged}}' $(docker container ls -q) # false :( systemctl stop docker DIR="/var/lib/docker/...
0 votes

Error running an Docker container or docker compose with postgres, golang and Debian 11, Agora appbuilder backend

The error is: services.database.environment must be a mapping That is telling you that the value of... version: 3.7 services: server: ... environment: # <-- THIS KEY HERE ...
  • 41.3k
1 vote
Accepted

Trying to install Wordpress locally by using docker where some folder symlinked to my git directory

The symlink is resolved inside the container. You can add the directory as an additional volume volumes: - ./wordpress:/var/www/html - /Users/anatoly/Developer/example.com/:/Users/anatoly/Developer/...
0 votes

Not able to change the redirect path using ngnix on docker

I'm assuming your nginx is listening on Port 80/443. Your nginx can't magically handle requests that come directly to the port 8081. You need to configure this directly on the service that is ...
0 votes

how can i modify max memory-limit in php.ini in docker container

Adding the following line inside your Dockerfile do the job for me RUN echo 'memory_limit = 2048M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
0 votes

Fatal error: Can't open and lock privilege tables: Table storage engine for 'user' doesn't have this option

If you are using docker or mariadb docker, create script to fix that bug like this: docker rm repair_maria -f docker run -d -it \ --restart always \ --name repair_maria \ -e ...
0 votes

AWS Code Build Error : Cannot connect to docker daemon

If using CDK, you will have to set docker_enabled_for_synth flag in CodePipeline. Also, you may need to make a manual deployment (cdk deploy), since pipeline' self mutation didn't work for me. ...
  • 101
0 votes
Accepted

Podman (or docker) running a MySQL container and a shared data directory

If I use the container default locations for storage, I will need to load a new database dump every time I start up the container, since storage is, by nature ephemeral. It is true that your ...
  • 41.3k
0 votes

Set MacVLAN in Portainer to get IP from DHCP server

The above configuration was correct. I had to set Promiscuous mode and Forged transmits to 'Accept' under the ESXi vSwitch security options. Once I've done that everything started working as expected ...
0 votes

Two containers or two separate machines?

We would need more informations about your use case. Do you need high availability ? Do you care about your data ? If your only server dies, is it an issue ? If one of both server, is it an issue ? ...
  • 731
5 votes
Accepted

When installing docker on Ubuntu, why isn't it as easy as apt-get install docker?

Depending on your needs, you can just use the default Ubuntu version: apt-get install docker.io The list of available packages is: $ apt-cache search docker [...snip...] docker - transitional package ...
  • 2,057
0 votes

ECS service is not starting tasks

Hi so the problem was the I had not assigned the iam role for the auto scaling group, I was not using an ecs optimized image and I did not write the ecs cluster name to the ec2 config file.
0 votes

docker-compose no such service: myapp

The answer is ... use the service tag, not your chosen container name, as mentioned in the answer by questionto42standswithUkraine I also had this issue, because I had 5 different flavours of my ...
  • 1
0 votes

Crontab not found in docker image

Yes, it's normal that there is no cron in a Docker container. Except when you want a container for cron. By principle you have only a single service in a container, along with its dependencies. If you ...
0 votes

Crontab not found in docker image

Here is how I run one of my cron containers. Dockerfile: FROM alpine:3.3 ADD crontab.txt /crontab.txt ADD script.sh /script.sh COPY entry.sh /entry.sh RUN chmod 755 /script.sh /entry.sh RUN /usr/...
1 vote

Run Docker Registry behind iptables

Dropping all traffic in the OUTPUT rule is going to prevent you from reaching any containers on your host: from the perspective of your system, a container has an address "somewhere else on the ...
  • 41.3k
0 votes

Swarm nodes cannot communicate

I had the same issue after update ubuntu from version 18.04 to 22.04. Current system configuration: docker version: 20.10.17 ubuntu version: 22.04.1 LTS After suggestion of turning off the checksum I ...
  • 1
0 votes

Docker login to AWS ECR from GitLab CI fails with "dial tcp: lookup docker on x.x.x.x:53: no such host" when pulling docker:dind from ECR

As mentioned by @orban https://serverfault.com/users/190624/orb%c3%a1n-zolt%c3%a1n Just add "privileged=true" to the /etc/gitlab-runner/config.toml for ex [runners.docker] tls_verify = ...
0 votes

Crontab not found in docker image

Typically the cron files have nothing related to cron/tab. If the periodical job is critical to a program (e2scrub in your case), its package should depend on cron. So if you want e2scrub to run ...
  • 1
0 votes

Change Docker Volume storage location

It looks like the only option is to use the local-persist as you already mentioned or use the bind-mount.
0 votes
Accepted

MYSQL: Upgrade is not supported after a crash or shutdown with innodb_fast_shutdown = 2

First take a backup of your mysql data directory. Then delete the files ib_logfile*. When you start mysql, it will create new, empty log files. Also, running with innodb_fast_shutdown = 2 is a bad ...
  • 22.8k
0 votes

Ecs service doesn't update the task definition

This also would work. When you run --force-new-deployment on your local machine it opens a vim editor with the output, dev/null the command and it should resolve the issue. aws ecs delete-service --...
0 votes

Docker complains "Address already in use" after docker restart command

Check who is using same address/port netstat -anlop|grep <address/port> Remove container/process docker rm docker_name or kill -9 <pid> One you ensure address/port is free to use retry.
  • 2,401
0 votes

Docker nginx ssl error

You are copying the certificate files and the nginx config in the api container. You need to mount the files in the nginx container as volumes instead. nginx: build: ./nginx container_name: ...
0 votes

Ubuntu, apparmor won't stop and i can't kill docker containers

It is possible to force kill a container using its PID: docker inspect container_name kill -9 container_pid
0 votes

MongoDB Container Docker not working. MacOS

You trying run mongo command inside container named mongo. maybe it's just a typo and you dont wanna run any command inside container maybe it's typo in command name, check name of executable you ...
  • 641
0 votes

Hide mount point in docker container

Mount NFS:/storage under /storage on your Docker host. Mount the volumes from /storage instead of NFS:/storage/.
0 votes

Running headless chrome via supervisor on a Docker container

The reason this was happening was because I was building the Docker container on an M2 Mac using --platform=amd64 which apparently causes a lot of breaking issues in Chrome, and probably other things. ...
  • 1
1 vote

How do I configure reverse proxy for WSS support on a different port?

After some digging, this is what I found: If you pass the WEBSOCKET_ENABLED=true environment variable to the vaultwarden container as I do above in my docker-compose.yml file, the container will start ...
  • 141
0 votes

azure kubernetes service - not able to pull images from ACR - connection refused - inconsistent

service disruption in azure - k8s nodes that had automatic node updates installed got a version of ubuntu that had issues with DNS resolution. hence the dns name for the container registry could not ...
0 votes

How do I configure reverse proxy for WSS support on a different port?

I would suggest exposing port 3012 in nginx: nginx: image: nginx:1.23.1 volumes: - /srv/vaultwarden/nginx/templates:/etc/nginx/templates - /srv/vaultwarden/nginx/ssl:/...
0 votes

Sending system mail via SMTP to public mail server - port already in use

The above answers are making sense to me. So: stop postfix outside your container and send the emails TO the container. Probably you need to use the hostname of the computer running the containers. ...
1 vote
Accepted

Ring Buffer For Kubernetes Pods

May be this is not correct answer you are looking for but it will give you direction where to look into it. As your environment is on EKS and EKS doesn't give you control over container runtime I ...
  • 2,401
0 votes

set time period to restart a container with docker-compose

I have found a very elegant solution here: https://gist.github.com/kizzx2/782b500a81ce46b889903b1f80353f21 version: '3' services: app: image: nginx:alpine ports: ["80:80"] ...
0 votes

Which OS is running in my Docker container?

In docker container, there should be a file named debian_version under etc folder. You can do cat debain_version. It will show you the debian version.

Top 50 recent answers are included