All Questions
27 questions
0
votes
0
answers
30
views
What are the rules behind finding executables in shebang statements? [duplicate]
I want to create a Docker image that has the Python3 runtime, a Python script of my creation, update-alternatives configured to run python3 when python is invoked, and I want to make the Python script ...
0
votes
0
answers
1k
views
Not supported URL scheme http+docker when building the sonic project
During the building, I got the error like:
+sudo LANG=C DOCKER_HOST= chroot ./fsroot-ot-vs /usr/local/bin/generate_shutdown_order.py
Traceback (most recent call last):
File "/usr/local/lib/...
0
votes
0
answers
79
views
createrepo -v --update folder failed in incremental build in docker
env description:
root@sriov-TaiShan-200:~# docker version
Client: Docker Engine - Community
Version: 20.10.17
Server: Docker Engine - Community
Engine:
Version: 20.10.17
[root@...
0
votes
1
answer
3k
views
How to activate python venv in a non-bash shell?
I see most tutorials/online sources advice using either source or . (a bash built-in) to activate a python venv. For example, this page suggests to do the following in Linux:
cd ~/<proj_name>
. ...
0
votes
0
answers
83
views
Inkscape working on local machine but not working on docker container
FROM python:3.10
RUN apt-get update && apt-get install -y inkscape
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
CMD [&...
1
vote
1
answer
125
views
docker logs err:"+ sudo -E kolla_set_configs sudo: unknown uid 42401: who are you?" in openstack container
Multinodes(3 nodes) openstack cluster deploy by kolla-ansible, two nodes(2nd and 3rd nodes) are working well, the one node(1st_node) have some containers always Restarting with the error logs, e.g. ...
8
votes
3
answers
38k
views
How to install specific version of python on Alpine linux
I am using docker's official docker image and want to install python3.9.6
Running this installs python 3.10.x
apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
and I can't ...
1
vote
0
answers
363
views
Docker application to write to stdout and read from stdin
I am working on a task in which i am asked to do following thing.
docker run <arg> <image> writetostdout
This should write the tar file present in a director passed in one arg to stdout ...
2
votes
1
answer
6k
views
Dockerfile | executor failed running [/bin/sh -c poetry install --no-dev]: exit code: 1
I'm new to Docker, so I am not sure how to interpret the cause of errors.
"Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project ...
1
vote
1
answer
2k
views
psycopg2.OperationalError: could not connect to server: No route to host Is the server running on host "db" and accepting TCP/IP connections on port
Following the instructions here was fine on openSUSE Tumbleweed with Docker version 20.10.6-ce, build 8728dd246c3a
https://github.com/mirumee/saleor-platform#how-to-run-it
But on openSUSE Leap 15.3 ...
0
votes
1
answer
1k
views
Error :“the command '/bin/sh -c source protected-env/bin/activate' returned a non-zero code: 127” while I'm trying to configure my first dockerfile
I'm trying to learn docker. This is my first experiment. I have written this dockerfile :
FROM nvidia/cudagl:11.3.0-base-ubuntu20.04
LABEL Author="ZioMario"
LABEL Title="Firefox/...
1
vote
0
answers
154
views
tmux doesn't inherit PATH variable when inside docker?
I am trying to run tmux inside docker container. It runs but looses variables like PATH, for example inside container:
root@sparkmaster:/opt/bitnami/spark# ls /opt/bitnami/python/bin/python
/opt/...
0
votes
1
answer
1k
views
Rabbit mq handshake_timeout
There is a rabbitmq running on docker on my ubuntu aws server, which I connect to from my local pc app. After setting up https domain on nginx, it broke up (I am not sure if it the reason).
I tried to ...
1
vote
0
answers
1k
views
Xauthority for python plotting in a docker container
I'm trying to understand how to run a docker container with an X11 server running in it so that I can do visualizations when I write some python code, and found lots of answers out there.
I found many ...
0
votes
1
answer
3k
views
How to exit out of container shell from python cli
I am running python within a container.
The goal is to exit out of the container from within the running python code after receiving the input
value quit. I tried the below code:
import subprocess
...