Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
1
vote
3answers
1k views

Can I run a Ubuntu 16 Docker image on a Ubuntu 18 host? Will I need to install hardware drivers already available to the host?

We have some Docker images built from Ubuntu 16.04 base image, and we've been running them on hosts running Ubuntu 16.04; these hosts are laptop computers from different makes. However, we have had ...
0
votes
1answer
57 views

Upload data into docker container from docker volume

I wish to create a volume and mount it to a docker container in order to collect some artifacts, and I want to reuse these artifacts into another docker container later on. Can i just mount the same ...
2
votes
1answer
33 views

How to deploy a Kubernetes service using NodePort on AWS?

I have created a cluster on AWS EC2 using kops consisting of a master node and two worker nodes, all with public IPv4 assigned. Now, I want to create a deployment with a service using NodePort to ...
2
votes
1answer
836 views

Can't write to Docker volume

My set-up I have a Docker image based on php:7.4-apache. I have two Docker volumes for saving files that need to be persisted. On container start, I run Certbot to install HTTPs certificates. Issue ...
2
votes
1answer
158 views

Multiple apps (microservices) and one proxy (nginx) docker-compose configuration/architecture

Having the following architecture: Microservice 1 + DB (microservice1/docker-compose.yml) Microservice 2 + DB (microservice2/docker-compose.yml) Proxy (proxy/docker-compose.yml) Which of the ...
3
votes
1answer
115 views

Workflow with docker in the development environment

I have a couple of questions related to the usage of Docker in a development environment. I am going to propose three different scenarios of how I think Docker could be used in a development ...
0
votes
1answer
1k views

error while loading shared libraries: libtinfo.so.6 : two behaviors for same docker image

I am developing an Erlang-OTP application, for that I use a docker image. docker-compose.yml: FROM centos LABEL Name=myimage Version=2.0.0 RUN set -e \ && yum -y install \ autoconf ...
1
vote
1answer
702 views

Problem on gitlab-runner: cannot lock ref [...] Another git process seems to be running in this repository

I got a problem on a gitlab-runner after pushing several commits: Running with gitlab-runner 11.4.0 (8af42251) on GITLAB-RUNNER 58c31dfa Using Docker executor with image registry.git.rwth-aachen....
4
votes
1answer
52 views

Condition to skip a test when running in a container

I'm writing an Inspec profile which has a specific control that I want to skip if the control is running inside a docker container. This looks like: control 'ssh daemon' do impact 'critical' ...
4
votes
1answer
174 views

Should I chunk my docker images in many small layers instead of one large?

When I build docker image for existing applications I try to use as few layers as possible and clean up any unwanted files. For example building an image for moodle: # Dockerfile for moodle instance. ...
0
votes
1answer
46 views

Does Docker images works without client application

I recently installed Docker in Ubuntu 18.04 and with that, I have downloaded the mariadb image like this docker run --name mariadb \ -p 3306:3306 \ -v /opt/mariadb_data:/var/lib/mysql \ -e ...
1
vote
1answer
1k views

What is the difference between a jail environment in linux and docker container?

I am curious about difference between a jail environment in linux and Docker. What separates these two technologies?
1
vote
1answer
30 views

Auto-managed docker-compose volume not shared among containers

I have a bit of hard time understanding the way docker-compose handles auto-managed volumes. Here is an example docker-compose.yml version: '3.7' services: one: image: alpine command: sh -c ...
1
vote
1answer
84 views

Jenkins file that uses docker-compose gives ambigous error

I'm new to Jenkins and I want to automatize my current workflow a little bit. Right now I push it to the raspberry. Then via SSH I pull the changes, run docker-compose build and docker-compose up ...
1
vote
1answer
57 views

Do I need header files once I install the php extention on Dockerfile?

Usually when I build docker images for php I use this approach: FROM php:7.2-apache RUN apt-get update && \ apt-get install -y libghc-postgresql-simple-dev &&\ docker-php-...
1
vote
1answer
649 views

mariadb docker on raspberry

I've tried countless docker images, but all of them have the same behaviour. When I open up a console and try to import my database structure via the mysql/mariadb command. But I always get the same ...
0
votes
1answer
47 views

Let docker containers work with each other

I’m new to docker and I want to dockerize a aleardy existing application. It consists of a react application (I already created a container for that one successfully), a REST-api based on node-...
1
vote
1answer
801 views

create entry-point script to get all env variables starting with VUE_APP_ and take it's value

I would like to Dockerize my existing vuejs app for staging , production and I used multi staged approach to create my app container and I'm using Ubuntu 18.04 and this is my, Dockerfile # build stage ...
1
vote
0answers
248 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 ...
3
votes
1answer
49 views

Dockerizing a tool to test web apps?

I'm new to docker/Jenkins and would like a hand understanding something I'd like to practice. I'm trying to set up a tool (like owasp-zap) and using it to run against a container built of an ...
0
votes
1answer
92 views

Using a ubuntu base image vs an application specific image (node, python, etc)

What are the benefits of using an application specific Docker image vs a generic OS? I'll use an angular app here as a contextual example, but this should apply to other apps as well. Example 1 | Use ...
1
vote
4answers
375 views

Why will my container run in Docker, but will not run in Kubernetes?

Background I have a container that I have defined with an CMD and an ENTRYPOINT in Docker. When I run the following command my container runs with no issues whatsoever. docker run --rm -ti custom-...
1
vote
2answers
2k views

Can an in-memory filesystem be created from inside a docker container with no special permissions?

I'd like to create an in-memory filesystem within a docker container running on a cluster where I can't assign the container any special permissions (e.g. the container can't have CAP_SYS_ADMIN ...
1
vote
1answer
1k views

How to pass parameters to a container orchestrated by Kubernetes similar to running the container at the command line using the docker run command?

Background I have a docker container that I run in the following fashion: docker run --rm my-custom-container:latest --username me --password yes --url "https://my.url" The container does what ...
5
votes
1answer
89 views

Is the root user in a Docker image/container the same as the root user of the machine?

Is the root user in a Docker image/container the same as the root user of the machine? I am curious about the security implications of using the root user in the Docker image. TMK, the container is ...
1
vote
1answer
1k views

Authentication Error in Kubernetes

I am new to Kubernetes. I am getting below error while creating deployments in Kubernetes. <!-- You are authenticated as: anonymous Groups that you are in: Permission you need to have (but didn'...
3
votes
1answer
2k views

Can't make MySQL 5.7 work with Docker Compose, no matter what

I'm configuring a docker compose file, and the first step is to configure the MySQL service (so I can further use in my app service), but no matter what, I cannot enter MySQL within the container, ...
2
votes
2answers
3k views

Ansible - Copy multiple files

I am trying to copy multiple files to the target like so: tasks: - name: "Copying files" copy: src: files/{{ item }} dest: /my/folder/ with_items: - file.txt The files ...
1
vote
1answer
2k views

Running Jenkins in docker with custom uid / gid

I have the following Dockerfile: FROM jenkins/jenkins:latest I'm build a Jenkins container as follows: docker build -t my-jenkins --build-arg uid=1003 --build-arg gid=1003 . I then run the image ...
1
vote
2answers
6k views

docker | database connection refused between two containers

I have a mysql database running with the following docker-compose.yml: version: '3.3' services: db: image: mysql:5.7 restart: always environment: ...
0
votes
2answers
136 views

Cannot install Ansible

So I am creating a packer template for docker with the image php:7.0-apache. I added a shell provisioner where I try to install ansible so I can provision the image: { "type": "shell", ...
1
vote
2answers
1k views

How do I set up certbot, with Nginx, both in a Docker container?

Title says it all I guess. I didn't even know what Ubuntu/Nginx/Docker/etc was a week ago but I've managed to set up Docker/Docker Compose, PHP-FPM, PHPMyAdmin + Gitlab on a reverse proxy through ...
1
vote
1answer
766 views

RDS DB migrations using ECS and Fargate

I run my app with Docker and ECS. How can I handle database migrations? With fargate there doesn’t seem to be a way to SSH into the container to run any commands so I can’t run my RDS MySQL migrations ...
1
vote
1answer
322 views

Can one use lando.dev for a production environment?

OpenSource community developed free lando.dev looks great for a local development platform on one's own machine. I'm certainly looking to evaluate it for my own setup. But, given there are benefits ...
0
votes
1answer
28 views

docker-compose run container before other container stop

Can somehow with docker or docker-compose run container B before container A stop? docker-compose support trigger event or something like that? Cheers
2
votes
2answers
317 views

localhost Pod to Pod communication k8s

I am trying to transfer an old legacy system to k8s. I have a custom server that client apps connect to in order to communicate with one another. Both the server and clients were originally created ...
3
votes
1answer
428 views

How do i connect docker pipeline on jenkins to kubernetes cluster

I am trying to setup a pipeline on jenkins that uses docker containers to execute tasks like for example deploy an helm charts using a docker image with helm here is what my Jenkinsfile looks like ...
1
vote
2answers
107 views

Are there arguments against using “imagization" tools in the literature and if so, what are the main ones?

Although I never used an "imagization" tool (for example, Docker) I understand a container as an instantiated (running or stopped) image which in plural are simply put, a server environment and ...
1
vote
1answer
39 views

Can I run command from a program thats based on the root host from a containerized application?

I'm in a situation where I have a Django application, Nginx webserver and Postgres database that I want to dockerize, and that's no issue I can do that. But the Django application has code that calls ...
1
vote
2answers
37 views

Docker preserve images policy

Can I configure Docker in a such way that it will store only certain amount of tags for the given image e.g. docker images REPOSITORY TAG ...
4
votes
1answer
2k views

How to deploy docker-compose to a remote host

I am new to the docker ecosystem and I am trying to figure out a proper deployment infrastructure for a system I am working on. Imagine a following scenario: a system consists of three microservices ...
2
votes
1answer
980 views

No Such Host: Kubernetes/Docker cannot pull from private k8 registry

I have a private docker registry in k8 in the default namespace with tls at https://docker-registry.default:5000. By doing local port forwarding to it(at port 5000) and adding docker-registry.default ...
2
votes
0answers
190 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 ...
4
votes
1answer
357 views

How to pin OS package versions in Docker image

Scenario For obvious reasons I believe that every package installed in a Docker image should have their version nailed down. That's why in our Dockerfile we always enforce the OS package manager to ...
1
vote
1answer
51 views

How to develop a docker container for laravel without laradock or docker-compose

I am very new to docker. I want to build a laravel development environment with docker. I already tried laradock but it seemed complicated for me. I was wondering whether it is possible to create a ...
2
votes
0answers
459 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 ...
8
votes
1answer
392 views

Automate custom docker image deployment on AWS

This question is related to my previous one - but a bit more descriptive. I am trying to build automate the generation and deployment of a docker container. The docker container is created with packer....
1
vote
3answers
3k views

Find most popular images with `zip` and `git` on Docker Hub

To speed up builds, I'd like to avoid install tools that I need on every commit with apt-get update -y && apt-get install -y git zip. Normal way is to create custom build image, register at ...
0
votes
2answers
141 views

AWS ECR start uploaded docker image?

I used packer to upload a docker image I created to my AWS ECR repository. How can I use the AWS cli to automatically locate that image, create a new cluster, set the port rules to allow all inbound ...
0
votes
2answers
3k views

No Kubernetes Option in Docker Desktop for Windows

Just getting started on Docker and after installing Docker Desktop on a Windows 10 Pro machine, the option to enable Kubernetes is missing from the context menu when using Windows containers. See the ...

1
5 6
7
8 9
20