Questions tagged [docker]

Docker provides a high-level API to containerize processes and applications with some degree of isolation and repeatability across servers. Docker supports both Linux and Windows containers running on x86/64, ARM and other architectures.

0
votes
0answers
3 views

Airflow how to mount airflow.cfg in docker container

I'm running airflow in a docker container and want to mount my airflow.cfg as a volume so I can quickly edit the configuration without rebuilding my image or editing directly in the running container. ...
0
votes
1answer
10 views

Docker ignores step for same image name

I am new to docker, to understand i am trying to build a simple image, but in my case some of the steps in build is ignored if I use the same image name again. I am sure i am doing it wrong, but just ...
0
votes
0answers
8 views

Can microsoft .net core 2.2 sdk docker container be used for building 2.1 and 2.2 targeted projects

I have several .net core 2.1 and 2.2 projects that will be built using on-premises servers that run Docker containers for the build workspaces. I am planning to use the mcr.microsoft.com/dotnet/core/...
0
votes
0answers
11 views

How to server static files from an php-fpm image over an nginx image

I have a web app based on the Symfony framework. I have an php-fpm image with all the php and asset files. Now I want to serve the files over a nginx container. The php part is easy. But how can I ...
1
vote
0answers
11 views

InfluxDB empty result set

I run influxdb in docker with default settings (docker run -p 8086:8086 influxdb:1.7.4) and i try to insert some data using influx java driver (2.15): public class BasicUsageTest { static final ...
0
votes
0answers
9 views

How do I alias python2 to python3 in a docker container?

I am trying to set the default python in my docker container to be python3 and have set the aliases in the dockerfile. When I open the .bashrc file, they show up. As far as I can tell, it should work ...
0
votes
0answers
7 views

Amazon CodeBuild docker command is unable to enable with ECR

We are trying to configure Amazon codebuild using ECR and Docker.but unable to enable docker using the following buildspec.yml file. version: 0.2 phases: install: commands: - echo ...
0
votes
0answers
21 views

NoClassDefFoundError in service on startup. Is jce_policy-8.zip for security the culprit?

I have a Spring Boot application running in a docker container using JDK 8. I have a Maven goal that builds the docker container and it pulls down jce_policy-8.zip from Oracle's website before ...
0
votes
0answers
9 views

If I run `docker-compose up` do I need a Dockerfile in the directory as well as a docker-compose.yml file?

Do I absolutely need to have a Dockerfile in my directory when using the command docker-compose up? I don't believe a Dockerfile is necessary but want to be sure. If I only have a docker-compose.yml ...
0
votes
0answers
14 views

attempt to change docker data-root fails - why

I am trying to set my docker storage dir as other than default, something I've done on other machines: /etc/docker/daemon.json: { "data-root": "/mnt/x/y/docker_data" } where the storage dir ...
0
votes
1answer
10 views

Hiding Docker Exec output of a Postgres query

I'm using a Powershell script to start a Docker container with Postgres: docker run -p ${host_port}:${remote_port} --name $container_name -d $database_name # 0b. Wait for the container and the ...
0
votes
1answer
13 views

Should `docker-compose.yml` be in its own repository?

I'm building a small web app with Vue.js and an Express API, each with their own Dockerfile. I currently am able to build those images and publish them to a private Docker repository, then pull them ...
0
votes
0answers
4 views

Set Docker_Host back to default?

Following this post: How to detect a docker daemon port I set my Docker_Host to tcp:2375 and removed TLS. I'm strictly doing this so I can follow the Chef Rally: https://learn.chef.io/modules/detect-...
2
votes
1answer
20 views

Error running docker container: starting container process caused “exec: \”python\“: executable file not found in $PATH”: unknown

I am trying to dockerize a simple Python-Flask application but I am getting an error while running my container. docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: ...
0
votes
0answers
13 views

WORKDIR in dockfile is not working when import images

Below is my dockerFile FROM node:10.15.0 WORKDIR /usr/src/app COPY ./build/release /usr/src/app/ RUN yarn EXPOSE 3000 CMD [ "node", "server.js" ] Everything is ok when build a image first time and ...
0
votes
0answers
32 views

Cannot create an image for Golang app using Docker

I try to create an image for my Golang application, but Docker just writes: Step 7/9 : RUN go install ./accounting/server ---> Running in f998ba6a5efb can't load package: package grpcProjects/...
1
vote
0answers
24 views

Python flask reloader “Errno 2 No such file or directory” error when running on docker

I have a problem running a little Flask app with Docker. Everything works fine with debug off, but when I try to run it with debug on it fails at the reloader stage. It works fine on Windows, the ...
0
votes
1answer
8 views

How do I test if a specific tag of a docker image already exists in gcr.io?

I've noticed with gcr.io that when I push a docker image with a specific tag: gcr.io/myproject/myimage:mytag If that image/tag combo already exists, it seems to untag the original image, upload the ...
0
votes
1answer
14 views

kubernetes Clusterip+port is not reachable in some cases

l tried to set up a dvwa environment in k8s, l found it not work as usual when l exposed the dvwa pods's port. l tried exposing a nginx sample to make sure my k8s env is working. And yes nginx works ...
0
votes
0answers
14 views

BItbucket Pipelines - Container Exceeded Memory Limit Failure

I'm having increasingly common issues with build failures using Bitbucket Pipelines. While this used to happen only occasionally, it is now happening on nearly every build. The app is a Phoenix/...
0
votes
1answer
8 views

First run of Docker — Running makeitopen.com's F8 App

I'm reading through makeitopen.com and want to run the F8 app. The instructions say to install the following dependencies: Yarn Watchman Docker Docker Compose I've run brew install on all of these,...
0
votes
0answers
6 views

Hyperledger Fabric - Unable to Start Network with Four Kafka and Three Zookeeper Ensemble

I'm trying to setup a network of 2 organizations each having two peers. A 3rd organisation having 2 orderer nodes with kakfa-zookeeper ensemble with 4 kafka and 3 zookeeper nodes. Below is the ...
0
votes
0answers
12 views

Is it safe to give someone root in a docker ubuntu server? [on hold]

I have a friend who needs a server. First, I created a user and chrooted ssh there, but he needed a root user. As a solution, I created a docker ubuntu server container, installed an ssh server on it ...
0
votes
0answers
14 views

Containers: Kubernetes: How do you configure app configs for client-side(react,angular) apps for each environment with containers?

How do you configure browser-based apps(angular, react) for containers? I have tried using kubernetes config maps but they only work with server based applications. As browser based apps cannot read ...
0
votes
0answers
6 views

nginx proxy letsencrypt companion. transform nginx.conf to proxied server?

I'm getting started with jwilder/nginx-proxy and JrCs/docker-letsencrypt-nginx-proxy-companion for SSL docker proxying. Im a bit stuck working out what the nginx.config for a proxied server looks ...
1
vote
2answers
31 views

Trying to create pod with init container

Iam trying to play with init pods. I want to use init container to create file and default container to check if file exist and sleep for a while my yaml: apiVersion: v1 kind: Pod metadata: name: ...
-2
votes
1answer
25 views

Does Docker Alpine images include npm?

I'm setting docker container to bundle my frontend assets with npm and Webpack. I would like to use lightweight Docker image for the purpose. Does the images from https://hub.docker.com/_/alpine come ...
0
votes
2answers
20 views

Slimming Docker Image for Python Application

i developed an python application that should run in a docker container. Everything went pretty well, both container and application are running perfectly. The thing is, that i just tried to get the ...
-1
votes
2answers
25 views

Minikube and Docker - conflict? [on hold]

I've been using Docker for quite a while for some development. Now, I am trying to learn some more advanced stuff using Kubernetes. In some course I found information that I should run eval $(...
2
votes
0answers
23 views

Failed to query/invoke Hyperledger Fabric Peers(in a docker swarm network) via NodeJS - GRPC/S deadline Error

Process I've installed, queried, invoked fabcar chaincode via CLI. Everything was successful. enrolAdmin.js and registerUser.js successfully worked. BUT when I ran query.js I've got the following ...
1
vote
0answers
26 views

Docker Nginx Proxy: how to route traffic

I have a docker compose file. I run 3 containers (nginx, postgresql and java app) All containers are create. My problem iswhen i want to acces to my app i use this url: http://10.34.18.2:81/myProject ...
0
votes
0answers
11 views

I have a problem with private docker registry, it can't connect when I use my domain proxy

I'm setting my private docker registry using this command : docker run -d -p 443:5000 --name registry -v /var/opt/docker/docker-registry/data:/var/lib/registry -v /var/opt/docker/docker-registry/...
0
votes
2answers
17 views

How to pull the new image to kubernetes from docker hub without effecting the running pod?

I am setting up an application in kubernetes and want to restart the pod if the new image is pushed into docker hub. I am not able to restart the pod if the new image is pushed into docker hub ...
0
votes
0answers
34 views

Access Informix using C# (Net Core 2.2) inside a Windows Docker container

I am working on migrating a NET Core application that accesses an Informix database so that it can run in a Windows Docker container. I have done a POC and when I run it on my local machine it works ...
0
votes
0answers
8 views

Failed to deploy flask with uwsgi-nginx-flask-docker: images 404 (Not Found)

I am deploying a simple flask app on ubuntu 14 server based on Docker: uwsgi-nginx-flask-docker. Images are ok in local machine, but there are 404 Not Found for images. (1) directory structure I ...
2
votes
1answer
34 views

Django-Cookiecutter cannot start the default project

I am trying to start a fresh project with django-cookiectter, it builds fine but when i am trying to docker-compose -f local.yml up it gives me this error on django's service: django_1 | * ...
0
votes
2answers
29 views

Does Kubernetes support Docker CE on Linux?

I read about things that there are some Kubernetes issues with Docker support. As far as I understood Kubernetes doesn't support Docker CE on Linux. Does Kubernetes support Docker CE on Linux?
0
votes
1answer
22 views

Error “Docker: invalid publish opts format ” runing Graphviz docker container on Mac Os

I'm completely new to docker and am using it for the first time. I have installed Docker Desktop for Mac OS and run the 'Hello-world' container successfully. I am now trying to run this 'omerio/...
0
votes
2answers
37 views

Make docker image as base for another image

Now I have built a simple GET API to access this database: https://github.com/ghusta/docker-postgres-world-db This API will get a country code and get the full record of the country of this country ...
0
votes
0answers
12 views

Deploying a HyperLedger Fabric network on HyperLedger Composer

I have created a custom hyperledger network with 2 organisations and 2 channels. I have coded the necessary .yaml files and coded an extensive GoLang file as my chaincode. The system is working ...
0
votes
1answer
24 views

Cloud config got Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/} from Eureka server

I'm trying to implement Discovery First Bootstrap way for my 4 micro-services. First is a config server that takes config from git, and second is an Eureka server. When i'm running docker-compose up ...
0
votes
0answers
24 views

Run a sudo command from CherryPy

I'm trying to create a small application with Python & Cherrypy. I need to interface Docker: list images, instantiate images etc. The background is probably not important. I just need to run some ...
0
votes
0answers
12 views

Remote debugging fails in VSCode because of extra “--interpreter=mi” option passed to LLDB

I was setting up a remote debugging environment using docker which has lldb-6.0 installed. I was also using gdb to set up the process. My launch.json file has configurations for both gdb and lldb. Gdb ...
0
votes
1answer
27 views

Flask CLI throws “[Errno 2] No such file” when deploying with docker

I'm following the micro services course on testdriven.io. In this course I need to deploy a Flask application with Docker. To run the application I use Flask-cli, and it gives me an error on start up: ...
0
votes
0answers
15 views

How to create a container with docker-compose if the project depends on a nuget private package in a share network drive?

I have an asp.net core webapi solution which uses a NuGet package from a private repository located in a share network drive. What i did was to add a nuget.linux.config file in the project directory ...
0
votes
1answer
14 views

docker-compose restore database in sql-server-linux

I'm following https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-docker?view=sql-server-2017 to config and run standalone sqlserver container in macos with persistent data ...
0
votes
0answers
28 views

CI/CD results don't consider whether containers started successfully internally

When I bring up a Docker container in detached mode, the results usually return sooner as they will not print out on the console. This is a problem for me when I'm running it through Gitlab's CI/CD. ...
0
votes
0answers
19 views

“Access is denied” occurs for command “net start server” service on a Windows Docker dotnet image

I am trying to set up a windows docker image that needs to run commands such as net view \\my_IP, starting from base image microsoft/dotnet The problem is, I get the error message "The Server service ...
-1
votes
1answer
12 views

ERROR: readlink /var/lib/docker/overlay2: invalid argument

This morning I was getting this error when executing docker-compose up > docker-compose up ERROR: readlink /var/lib/docker/overlay2: invalid argument
1
vote
0answers
15 views

How to install ARM translation on an Android emulator inside Docker

I want to install an ARM .apk onto a x86 Android emulator. It already works with libhoudini and Genymotion. Now I want to use libhoudini with docker-android. I already tried the solution from How to ...

http://mssss.yulina-kosm.ru