Get jenkins.BadHTTPException when try to get version info from jenkins run on docker

I installed docker container for Jenkins ver. 2.19.1. docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...

Docker Compose Error "TypeError: expected string or buffer" on docker:dind (ports)

I'm triying to setup my containers with docker-compose in a docker container (docker:dind) to make the tests at gitlab ci. From yesterday to today it has begin to fail on "docker-compose up" and i...

docker ERROR: for nginx Cannot start service nginx: driver failed programming external connectivity on

I'm new to Docker and setting up my first Django application using Docker my application path looks like app |- helloworld |- __init__.py |- manage.py |- static_cdn |- static_root ...

Could not translate host name "db" to address using Postgres, Docker Compose and Psycopg2

In one folder I have 3 files: base.py, Dockerfile and docker-compose.yml. base.py: import psycopg2 conn = psycopg2.connect("dbname='base123' user='postgres' host='db'...

Docker. ERROR: Uploading artifacts to coordinator. timeout awaiting response headers

I try to prepare large artifact file (about 1 GB). But I stuck with next error: ... Stopping my_mysql ... done $ docker run --rm --volumes-from my_mysql carinamarina/backup backup --source...

Unable to install/run docker with opencv

I'm using the code below in Dockerfile and it builds successfully but it does not run. How can I get it to work? FROM python:3.5-slim COPY . /app WORKDIR /app RUN apt-get update RUN apt-get -y...

gitlab-ci.yml & docker-in-docker (dind) & curl returns connection refused on shared runner

I'm trying to create a simple GitLab CI where I spin up a container using docker-compose up then try to access it using curl and finally tear it down using docker-compose down. docker-compose up...

How to fix SSL Certificate Verification Error for a Gitlab CI build that uses docker in docker (dind) service for Python 3.x Architecture?

I am receiving SSL Certificate Verification Error from a gitlab CI build that uses docker in docker within a Python 3.x architecture. All CI build images are alpine linux based. I have setup a CI...

Ansible: Failed to import docker or docker-py - No module named docker

I've installed Docker and Ansible to my AWS Ec2 Linux as follow: sudo yum update -y sudo yum install docker -v sudo service docker start sudo yum-config-manager --enable epel sudo yum...

docker-compose/django TypeError: expected str, bytes or os.PathLike object, not NoneType

I'm trying to set up my Django and postgres dev environment with docker so I can run it on other machines more easily as well as run everything from 1 terminal window (I'll be adding my react...

How to fix "Forbidden!Configured service account doesn't have access" with Spark on Kubernetes?

I am trying to run the basic example of submitting a spark application with a k8s cluster. I created my docker image, using the script from the spark folder : sudo ./bin/docker-image-tool.sh -mt...

Does Spark Kubernetes suport the --py-files argument?

I'm trying to run a PySpark Job using Kubernetes. Both the main script and the py-files are hosted on Google Cloud storage. If I launch the Job using the standalone resource manager: spark-submit...

How to fix no module error in flask RQ worker

I am using docker-compose to build a web application with Redis and a worker. Furthermore, I have the rq-dashboard to monitor. The entire project is in vagrant- ubuntu environment Project...

Dockerizing Django application: ModuleNotFoundError: No module named 'X"

I've been trying to follow this guide to Dockerize a project: Deploy and Run Django in Dokcer Container This is the base file structure: WFMBCM |-WFMBCM | |-__init__.py | |-__pycache__ |...

uwsgi-nginx-flask: unable to load app 0 (mountpoint='') (callable not found or import error)

Consider the following file structure: root |- app | |- api { ... } | |- logic { ... } | |- models { ... } | |- schema { ... } | |- __init__.py | |- config.py | |- sql_alchemy.py | |-...

Odoo 12 docker compose doesn't display mounted extra addons

I'm in search to create an extra addons on my odoo. I've created an addon, and I've set in my docker compose file to mount the folder containing my addon on a folder into my odoo docker image...

Docker compose - Name or service not known when calling service from another container

I have a Django app in one container, trying to compose it with Redis and Mysql containers. However, calling redis://redis:6379 from Django app, gives me ConnectionError: Error -2 connecting...

Inject env variable into build stage of image

Working on a CI/CD pipeline for a Django based API. I need to inject an environmental variable during the build stage to successfully build the image. python manage.py collectstatic is run in the...

Docker-in-Docker issues with connecting to internal container network (Anchore Engine)

I am having issues when trying to connect to a docker-compose network from inside of a container. These are the files I am working with. The whole thing runs when I ./run.sh. Dockerfile: FROM...

Docker [Errno 111] Connect call failed ('127.0.0.1', 6379)

I am trying to follow the tutorial here https://channels.readthedocs.io/en/latest/tutorial/part_2.html and check if channel layer can communicate with Redis. The only different thing I'm doing is...

Redis queue worker module not found

I have dockrized container to run a flask app. After configuring the redis and rq worker I am getting the error for module not found in the worker task. I am certain this is some path issue, I...

Why I'm getting this error while building docker image?

I got the following error while building a docker image by "docker-compose build". ERROR: Couldn't connect to Docker daemon at http://127.0.0.1:2375 - is it running? If it's at a non-standard...

AWS Lambda Container Running Selenium With Headless Chrome Works Locally But Not In AWS Lambda

I am currently developing a Python program which has a segment which uses a headless version of Chrome and Selenium to perform a repetitive process. I am aiming to run the program on Lambda. The...

Docker Compose - stuck on Sending Auth Config

I have a pretty straight forward app I'm building. I'm trying to go from a manual input command to using docker compose. I'm stuck in the build when using docker compose. It seems to work fine if...

dockerpy not able to connect to docker daemon inside bit bucket container

I have the below simple script which is basically to test whether https://github.com/docker/docker-py is able to run commands inside bitbucket containers: import docker CLIENT =...

Github Action with selenium and docker

I am currently working on a CI pipeline for a project and just started setting up a Github Action for running integration tests but I can't get it to work. My action looks like this: name:...

Docker on Mac M1 gives: "The requested image's platform (linux/amd64) does not match the detected host platform"

I want to run a docker container for Ganache on my MacBook M1, but get the following error: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)...

Import error when restructuring test application using Flask

I've been following the instructions on the following site: https://flask.palletsprojects.com/en/2.0.x/patterns/packages/ I've been getting the following error: web_1 | Error: While importing...

unable to execute 'gcc': No such file or directory when running docker build

I was trying to create a docker image for my python script and upload it to AWS ECR and then use it in Lambda. Our python runtime is 3.8 shown on the AWS console so I just followed this...

GitHub Action I wrote doesn't have access to repo's files that is calling the action

A sample repo with the directory structure of what I'm working on is on GitHub here. To run the GitHub Action, you just need to go to the Action tab of the repo and run the Action manually. I...