Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

Group authentication in kubernetes

I am trying to implement group based authentication in k8s with RBAC. My requirement is as below: There is a linux group named "readonly". There are 3 users reader1, reader2 and reader3 in ...
0
votes
1answer
27 views

is a secrets-provider-container a good idea?

I am looking for a way to provide secrets to a container running on Google Cloud Run responding to the following criteria: secure centralized & pulled based free simple working with a team, with ...
3
votes
0answers
342 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 ...
4
votes
1answer
220 views

Change docker container’s log PATH

Team: All my container logs are under /var/log/containers.. Where in kubelet or docker config can I specify this path such that logs are instead created under new path? Ex : /shared ? Instead of /var/...
1
vote
0answers
164 views

Multi-platform autobuild on Docker Hub - errors with linux/arm64

I try to make autobuild on Docker Hub from my repo on Github for two platforms (linux/arm64 and linux/amd64). I figured out, that I need directory hooks with file build, where I can overwrite default ...
1
vote
1answer
309 views

WordPress Site Health errors when using Docker and Nginx

I am trying to setup a production environment for multiple WordPress sites using Docker, Nginx reverse proxy, and Let's Encrypt. I have 3 containers for the proxy group using the jwilder/docker-gen, ...
0
votes
1answer
58 views

In a multistage Docker build, should the WORKDIR be deleted? [closed]

My Dockerfile contains this: ### STAGE 1: Build Angular app ### FROM node:14.15 AS build WORKDIR /usr/src/app COPY src/hub/package.json ./ RUN npm cache verify RUN npm install COPY src/hub/ . RUN npm ...
4
votes
3answers
496 views

Do Docker containers take up space?

When I list my Docker images, I can see their sizes: $ sudo docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE travisci/ci-ubuntu-1804 packer-...
0
votes
1answer
109 views

any way to limit "docker logs" output by default?

Context* I forgot to pass the "--tail" options to the "docker logs" command when inspecting a running container. The affected container dumps tens of millions of logs. The command ...
1
vote
2answers
156 views

Use a volume or copy my artefacts into docker image

I want to dockerize my php application and deploy it in production. Here is my application structure : api | +-- src +-- config +-- vendor +-- tests +-- public I need to embed api/* in my container, ...
-2
votes
1answer
28 views

How to change Ip for a DNS

I'll be very direct. I'm tired to search this and do not found anything about it. There is any way to change a lan ip to a dns (not chaging 'hosts' file)? Example: I've a centOs running in machine A ...
0
votes
2answers
997 views

How to get the IDs of Docker Containers that belong to a Service, given the Service name or id

Background I'm trying to maintain some websites running in a Docker Swarm. I want to do security updates on them. In a non-Docker environment, like a VPS, my simple process is that I would connect in ...
0
votes
1answer
234 views

Elasticsearch on Docker - file permission issues

I am trying to test LDAP in elasticsearch/kibana by running it in Docker on Windows 10. I pulled the image down: docker pull docker.elastic.co/elasticsearch/elasticsearch:7.10.0 And ran it: docker ...
1
vote
2answers
113 views

Can I build docker image containing ARM executable when running docker build on non-ARM architecture?

I have built on an x86-based Windows laptop a Docker image to be run as a container on an ARM-based architecture (Raspberry Pi 4). Due to ending up with an x86 executable when this is built in the ...
1
vote
0answers
136 views

Docker mount volume on SELinux enabled server

I'm trying to run Nginx as the docker container on SELinux enabled server with mounted configuration as -v /host/path/nginx.conf:/etc/nginx/nginx.conf:Z That works fine till I will deploy updated ...
0
votes
1answer
30 views

Disabling of docker build cache - common practice for large organizations?

I've been working with a large company that currently disables the docker build cache for CI/CD. Their justification is that they are managing many projects, so caching would be cumbersome. This ...
0
votes
2answers
22 views

Docker prunes image and networks by itself

I have a script which performs backup of several docker volumes during the night. It starts by stopping the containers that use these volumes, then it creates a new container with all the volumes ...
0
votes
1answer
110 views

Docker in docker volume mount doesn't work

I have the below command in my Jenkinsfile: docker run --rm -v "${WORKSPACE}":/var/cache/de --entrypoint=/usr/local/bin/pytest ${IMAGE_NAME}:${IMAGE_VERSION} -m "not require_dss" -...
0
votes
1answer
188 views

Deploy Docker Compose from different repositories

I have 3 separate repositories, which contains API, web app, and Admin projects. All 3 runs on a Digital Ocean docker machine, and I deploy the 3 using docker-compose (I want to keep things simple). ...
0
votes
1answer
240 views

What are possible backup status in velero?

I am using velero for k8s cluster backup. I was looking for possible backup status in velero. I couldn't find any proper documentation on this. Can someone please help
0
votes
2answers
475 views

backup dockerise mysql database from host volume

I use a VPS (my host) where a LAMP server was installed. I already have a database associated to host mariaDB server Ver 15.1 Distrib 10.1.47 and automysqlbackup backups it. This part works well. For ...
1
vote
1answer
375 views

Cannot access service using docker-swarm, but without

Currently I try to setup docker-swarm using two nodes and deploy portainer on them. Both nodes are virtual machines on the same host and are on the same network (172.16.255.255). Addtionally there is ...
0
votes
1answer
24 views

Can't change Windows Docker storage location (The parameter is incorrect)

I'm trying to move the Docker storage location to another drive. This is my configuration file: { "registry-mirrors": [], "insecure-registries": [], "debug": false, ...
5
votes
1answer
4k views

No longer see Docker build output properly!

I am using the latest version of Docker Desktop on Windows (Docker Engine version v19.03.13). After the last update, the output of docker build . has changed! It is now harder to debug what is going ...
1
vote
0answers
46 views

How to correctly copy a file when building an image on Docker Hub?

I have a fairly simple Dockerfile, which works locally. However, when I build it on Docker Hub I get the following error: Starting build of index.docker.io/adius/tasklite:next... Step 1/16 : from ...
2
votes
1answer
149 views

Using Docker images as vehicles for binary deployment artifacts

Let's say we're in an environment where we have a modern CI/CD pipeline for a number of containerized apps. We also have a number legacy apps which haven't been containerized yet. I'm wondering how ...
1
vote
2answers
2k views

How to serve a custom index.html using the stock nginx docker image?

How do I serve static content from the default nginx docker image? Given: root@mordor:~# root@mordor:~# docker image ls nginx REPOSITORY TAG IMAGE ID CREATED ...
0
votes
1answer
64 views

How to navigate to an index.html with nginx?

This builds and runs without apparent error: root@mordor:/home/nicholas/docker/nginx# root@mordor:/home/nicholas/docker/nginx# docker exec -ti some-nginx bash root@2c912aa5ce5c:/# root@2c912aa5ce5c:/...
0
votes
2answers
166 views

How to copy HTML files to include into nginx?

How do I copy an index.html file into nginx? root@mordor:/home/nicholas/docker/nginx# root@mordor:/home/nicholas/docker/nginx# ll total 12 drwxrwxr-x 2 nicholas nicholas 4096 Nov 13 16:18 ./ drwxrwxr-...
1
vote
1answer
149 views

How to access a fully qualified domain name through "localhost"?

About nine minutes into a tutorial on ERPNext I followed directions as: root@mordor:/home/nicholas/git/frappe_docker# root@mordor:/home/nicholas/git/frappe_docker# cat .env LETSENCRYPT_EMAIL=nicholas@...
0
votes
1answer
193 views

RUN fails while installing Angular on Ubuntu Image

I am trying to create an image for my angular application for running unit and e2e tests. I started from the ubuntu image and then installed the other components. My dockerfile has the following ...
3
votes
0answers
80 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 ...
1
vote
1answer
46 views

Host credential manager and Docker runners

Imagine you have a GitLab Docker runner which you would like to pass credentials from a credential store. That is the CI/CD variable just designates the credentials profile name. Is there a way to ...
0
votes
1answer
21 views

Helm Repo: can it host dockerfiles and other image-building artifacts

I have a service that I want to port to Helm. It's a django application that requires memcached and postgresql and a forward proxy like nginx. I would ideally like to have one repository with all that ...
1
vote
2answers
978 views

Docker mounts files as uid 1001

I have a Docker image that runs a PHP application. Everything works fine on my machine and the ones of my colleagues. However, some colleagues got a new computer that runs on Ubuntu 20.04 and by ...
0
votes
2answers
1k views

Can I upgrade a docker image/container from buntu 18.04 to ubuntu 20.04?

I have a host ubuntu 20.04 running my software on docker with a container derivated from ubuntu 18.04. I would like to use ubuntu 20.04 for several reasons (like the better software on 20.04). If I ...
0
votes
1answer
81 views

Gitlab CI - Deploy to an active docker container

I am running production code within an active docker container. I would like to use the Gitlab CI tool to auto deploy changes to the production environment WITHIN the docker container. I am having ...
1
vote
0answers
32 views

Docker failing while adding Ubuntu Image

I in the process of dockerizing an angular 9 application. My plan is to build the Docker from "scratch" then add the Ubuntu Bionic followed by Nginx followed by Angular and finally the theme ...
0
votes
1answer
121 views

Jenkins multi-agent build switching directories behind the scenes preventing AWS CodeDeploy plugin from zipping built files

I've narrowed my problem down to a very specific cause but am not sure how exactly how to fix it. A Jenkins server set up using Jenkins-configuration-as-code in a docker container runs a pipelineJob ...
0
votes
1answer
37 views

Docker update with persistent storage and 0 downtime

I have a docker container running with persistent storage. When I try to update now I kill the container, and rerun the updated image all over again. I've considered setting up the new container first,...
0
votes
1answer
27 views

'[[0;1;31mFAILED[0m] Failed to start' when running cloud-init?

I am trying to contextualize a docker container using cloud-init. Why do I see [[0;1;31mFAILED[0m] Failed to start in the OpenStack log? What is a likely cause of this error?
0
votes
1answer
109 views

How do I run opendistro elasticsearch in docker on HTTP

I'm trying to run the docker image of the AWS opendistro elasticsearch on my laptop for tesing https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker/ When I run it, it expects an ...
0
votes
1answer
242 views

What part of the Bamboo pipeline should generate a Docker image?

We are using Bamboo to build and deploy a number of Java web applications. Right now, the Build Plans generally produce a WAR file, which is deployed by the Deploy Plans. We are moving our hosting (...
0
votes
1answer
168 views

docker build fails on one machine but succeeds on another

On my own machine (Windows 10, Docker Desktop 2.1.0.3) the build succeeds and runs. On another machine (Ubuntu 18.04, docker CE 19.03.13) the build fails with the error shown. Why does the build work ...
0
votes
1answer
295 views

Ansible fails in Jenkins pipeline when run from docker

I'm trying to deploy a build via Jenkins pipeline using agent docker and Ansible playbook but it fails on Gathering Facts stage as shown below: TASK [Gathering Facts] **********************************...
1
vote
0answers
40 views

How to execute a "hello redis" sample python script on a container from the host?

How do I execute this "Hello Redis!!!" sample from the host? root@mordor:~# root@mordor:~# docker container ls CONTAINER ID IMAGE COMMAND CREATED ...
0
votes
1answer
51 views

why is "docker run" used to connect to redis?

Trying to understand what's happening here: root@mordor:~# root@mordor:~# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
0
votes
1answer
1k views

how to connect to a MySQL database in a docker container?

starting up the default mysql server: root $ root $ docker run --name mysql -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password mysql/mysql-server:latest ...
0
votes
2answers
307 views

How do I make a redis container accessible through bridge networking from the host?

I'd like to be able to connect directly to the redis container below: root $ root $ docker images redis REPOSITORY TAG IMAGE ID CREATED SIZE redis ...
0
votes
1answer
58 views

hello world with flask and redis using docker networking

The sample from Docker, a "hello world" with redis and flask, seems to build fine, but, as an exercise can it be broken into two components? The redis service uses a public Redis image ...

1 2 3
4
5
19