Questions tagged [docker]

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

87 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
49 views

How to run a container from within another container while also mounting a volume from the first container?

I'm running a build in Jenkins which is running inside Kubernetes. When the job starts, a container starts in the cluster and the build runs inside it. A step in the build requires building an RPM ...
3
votes
0answers
385 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 ...
3
votes
0answers
84 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 ...
3
votes
0answers
595 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 ...
3
votes
0answers
25 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 ...
2
votes
1answer
26 views

Is it good or ok or a bad practice to add Dependency via a RUN command in Dockerfile?

I am trying to create an image using a multi-stage build for a node project. I am using NestJs for the project since it uses TypeScript, and if I install only production dependency in the production ...
2
votes
0answers
31 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, ...
2
votes
0answers
158 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 (...
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 ...
2
votes
0answers
461 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 ...
2
votes
0answers
87 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 ...
2
votes
0answers
43 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 ...
2
votes
0answers
318 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 ...
2
votes
0answers
372 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 ...
2
votes
0answers
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 ...
1
vote
0answers
9 views

docker-compose does not update /etc/hosts at build time

When building an image of a docker container I need to access a service on host localhost. It looks like --add-host option for docker command updates /etc/hosts both at image build time and container ...
1
vote
1answer
15 views

Names field in docker ps -a command

When I run the "docker ps -a" command following command I fields: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
1
vote
0answers
48 views

Keepalived docker container crashing

This is my new experience with using keepalived, I am trying to start docker container of keepalived but it is crashing the error log doesn't explain much: *** Running /container/run/process/...
1
vote
0answers
19 views

calling shell commands on host from container

I've created a daemonset which adds a systemd unit and timer file to every host in the cluster. apiVersion: apps/v1 kind: DaemonSet metadata: name: logclean-updater spec: selector: matchLabels:...
1
vote
0answers
44 views

Building docker image of nuxt application using github actions fails (heap memory size exceeded)

I am trying to setup Github Actions workflow to automatically build and push docker image of my nuxt app, When the workflow finishes and I pull the image and run it, the web application doesn't load ...
1
vote
1answer
40 views

windows docker location of file env.conf

I found that on linux you can configure some settings inside file: /etc/systemd/system/docker.service.d/env.conf . I am wondering where I can find it in windows wsl?- purpose is to set those two ...
1
vote
0answers
39 views

Deployment with Docker tensorflow/serving fails when training the model on another machine

I'm following the Coursera TensorFlow Serving with Docker for Model Deployment course. You have to train a simple Tensorflow model and export it in Protobuf. tf.saved_model.save(model, path) Then you ...
1
vote
0answers
234 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 ...
1
vote
1answer
138 views

Building a docker container with multiple conda envs

As a novice to the technology I have only a basic knowledge regarding how to build and deploy a docker so i was hoping someone could provide some help. The situation is the following: I need to create ...
1
vote
1answer
90 views

Package installed using Dockerfile not available on Jenkins pipeline stage

I'm having sort of a weird problem with my Jenkins pipeline. I've defined a Dockerfile which installs some tools I need for my CI/CD pipeline, such as node, npm, sfdx, and sfpowerkit (a plugin for ...
1
vote
0answers
27 views

Simplest way to provide a service between Docker containers

I have a Docker container to run some data processing (running RStudio). At one point it would need to run an external tool (ExtTool) which needs completely different architecture: it's a Windows-only ...
1
vote
2answers
292 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 ...
1
vote
0answers
39 views

ClamAV server on Azure - how to secure traffic from services?

I would like to have ClamAV service (deployed from clamav/clamav image on Docker hub) which can be called by other services on the same subnet. However, clamd exposes API over TCP and there is no ...
1
vote
0answers
53 views

Redhat Nodejs-minimal yarn not found

Coming across a very odd issue here: Whenever I try using a ubi8/nodejs-14-minimal base image, the build fails with /bin/sh: yarn not found. I have installed yarn already by adding a Run npm install ...
1
vote
0answers
70 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....
1
vote
0answers
21 views

OS level Nginx that proxies to Dockers vs Dockers that each contain their own Nginx

Given a traditional Linux server ie- Ubuntu on a VPS and a commercial app that requires a handful of Docker containers each of which need to communciate to one another ... with one of those containers ...
1
vote
0answers
47 views

Reducing docker image size - /usr/lib, /usr/local and /usr/bin

I'm trying to reduce the size of our docker image considerably, as it currently stands at ~1.13GB. Given our app codebase takes up ~300MB and the image is based on Alpine, I think it can be a lot ...
1
vote
0answers
20 views

How do you find allowed HTTP methods in openshift deployment

In classical application deployment, one could query the web server with HTTP method "OPTIONS" to discover allowed HTTP methods On an openshift application deployement, how could we get that ...
1
vote
0answers
200 views

Connection Refused to Unix socket in Docker container from host

I have a service running in Docker that listens on a Unix Domain Socket, and a client running on the Docker host (a Mac). The client gets a "Connection Refused" error trying to connect. I'm ...
1
vote
0answers
173 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
0answers
149 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 ...
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 ...
1
vote
0answers
34 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 ...
1
vote
0answers
42 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 ...
1
vote
0answers
34 views

How to organize frontend infrastructure with dockerized MERN

Can you please tell me, how do I organize my frontend infrastructure for MERN stack dockerized app? For example, I will need a container for MongoDB, Node separately, organized with docker-compose, ...
1
vote
0answers
20 views

How to fetch PublishedPort from inspect

I'm trying to fecth the PublishedPort from my docker service. I think I'm close to fetch it. Here is the data : [ { "ID": "a51ijaddvaf1paeh1dn5p1k3", "...
1
vote
0answers
28 views

What is the best way to deploy a short living process when you have no machine?

I'm new to devops . I created a converter and want to deploy it . The converter converts a 3D model from a format to another and then you'll be able to visualize the outpout file on the platform and ...
1
vote
0answers
43 views

secret id in docker terraform file

what value secret_id variable is referring in below main.tf and terraform.tfstate code There is no variable called "id" in my secrets.tf file main.tf resource "docker_service" "mysql-service" {...
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 ...
1
vote
0answers
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 /...
1
vote
1answer
73 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 ...
0
votes
1answer
7 views

How to create a docker-compose that builds a private Gitlab project

I'm creating a solution that is hosted on Gitlab. This solution so far is composed of 4 private micro-services, namely: user: git@gitlab.com:{SOLUTION}/api/user grant: git@gitlab.com:{SOLUTION}/api/...
0
votes
0answers
13 views

Access API on a container from another container

I have 2 containers A and B which both contains webapps A is listening on 443 (apache2) B is listening on 4000 (node.js) Since I need to access to both services with https from my machine (win10), I ...
0
votes
0answers
15 views

Do the new changes to Docker licensing (with paid subscriptions) only apply to users of Docker Desktop?

Do the new changes to Docker licensing (with paid subscriptions) only apply to users of Docker Desktop? Reading the Docker FAQs regarding Updated Docker Subscription and Licensing Questions, it ...
0
votes
1answer
15 views

docker-credential-desktop.exe not installed

Moving from Docker Desktop for Windows to Docker Server / CLI for Linux to escape the license fee, I used the standard documentation for Ubuntu to install docker into my WSL2. After frankensteining it ...