Questions tagged module

Explore the latest questions and answers asked by our top developers.

No module named ‘termios’ when creating a DAG on Airflow Docker

I am trying to create a sample DAG on VSCode after installing Airflow through docker but I run into this error. ModuleNotFoundError*: No module named ‘termios’* Wondering what went wrong with my installation? I installed a docker environment for this and all containers seem healthy. I am using Python 3.6.8 and AIRFLOW_IMAGE_NAME:-apache/airflow:2.2.3 Kinda new to […]

By tsukikosagi
Published
Categorised as airflow, docker, module, python, termios Tagged , , , ,

Using pip -e with docker

I am actively developing a python module. I write code locally in path/to/module, then to interactively test the code I run a jupyter notebook with the autoreload extension. Typically when I do this I install the package using pip install -e path/to/module Then any changes in path/to/module get propagated into my jupyter notebook by autoreload. […]

By Jay Stanley
Published
Categorised as docker, module, pip, python Tagged , , ,

VS code with docker interpreter. Can’t import module

I’m working in remote interpreter in VS code. Seems it works well but… I created a folder (module) "utils" with some code. Then I created another module named data_load in there one file ‘data_loader.py’. In this file I try to import module from utils. But VScode rise an error that such module is not found. […]

By PAUL KRIVCHENIA
Published
Categorised as docker, module, python, visual-studio-code Tagged , , ,

Is there a way to set up multiple Local Go Modules, so they can run inside one Docker container without pulling from Github?

So my goal is to set up a local development environment with multiple Go services (all as independent modules) running in multiple docker containers and one Go module, which all services can use to start a new service with connection to the database etc. without repeating this code in every module/service. So my structure would […]

By Erik Bent
Published
Categorised as docker, go, import, local, module Tagged , , , ,

Can I operate on Linux kernel modules / devices from within a docker container?

There is very scarce information about this. What would be authoritative sources on whether I can do things like depmod, insmod, rmmod and modprobe from within a docker container? This assumes the container is running the exact same Linux (kernel wise of course it is, but also when building modules the kernel headers are exactly […]

Docker compose problem , one application on all ports

I have done 3 simple rest applications I run them with docker-compose It seems that only a product app is on all 3 ports I am fresh to docker. here is Dockerfile: FROM adoptopenjdk/openjdk11:ubi ADD credit/target/credit-ChocoladeIcecream.jar . CMD java -jar credit-ChocoladeIcecream.jar FROM adoptopenjdk/openjdk11:ubi ADD client/target/client-ChocoladeIcecream.jar . CMD java -jar client-ChocoladeIcecream.jar FROM adoptopenjdk/openjdk11:ubi ADD product/target/product-ChocoladeIcecream.jar . […]

By Mateusz Niedbal
Published
Categorised as docker, docker-compose, module, port Tagged , , ,

Python script using scripts/functions from different directory, how to write the dockerfile

I’m writing a docker script for running a python program from bitbucket, say myprogram.py. The python program uses specific functions from other files in other directories, and calls them like this: from mydirectory.myfunction import MyFunction Normally, if I just clone the bitbucket repository and run it, no errors occur. My repo in bitbucket consists of […]

How to write a docker file running a python script using scripts/functions from different directory

I’m writing a docker script for running a python program from bitbucket, say myprogram.py. The python program uses specific functions from other files in other directories, and calls them like this: from mydirectory.myfunction import MyFunction Normally, if I just clone the bitbucket repository and run it, no errors occur. My repo in bitbucket consists of […]

How to build a golang docker image with go.mod in a sub folder?

I have a go project folder as my_project |- common |- library |- golang |- my_app |- Dockerfile |- go.mod |- go.sum |- main.go The Dockerfile is from google cloud official example: FROM golang:1.15-buster as builder WORKDIR /app COPY go.* ./ RUN go mod download COPY . ./ RUN go build -mod=readonly -v -o server […]

By IOOI
Published
Categorised as docker, go, module, path Tagged , , ,

Docker images and modules

Let’s assume that we have created a container from an image, for example, Node-Red. There are several images of Node-Red with or without modules like python: With Python (default) docker run -it -p 1880:1880 -v node_red_data:/data –name mynodered nodered/node-red:latest Without Python docker run -it -p 1880:1880 -v node_red_data:/data –name mynodered nodered/node-red:latest-minimal If we do not […]

By Stavros Koureas
Published
Categorised as docker, image, module, python, terminal Tagged , , , ,
1 2

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq