34 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
2
answers
341
views
How to send command to server stdin in a docker image
I have a game server that I'm running in a docker image. If you send 'status' to the server stdin it will send the status of the server to it's stdout. I'm trying to find a way to send 'status' to the ...
0
votes
1
answer
224
views
mktime resulting in OverflowError: mktime argument out of range
When attempting to get a time using mktime, I get a overflow exception. This occurs on a Debian docker image, but not on my host machine:
docker pull python:3.9.7
https://hub.docker.com/layers/...
0
votes
0
answers
71
views
docker-compose dns and python docker api nested container
The cis container is running a simple flask server that calls daemon() on the backend. As part of the nested container's functionality, it needs to be able to access the git container as well as other ...
1
vote
0
answers
66
views
await Docker().containers.get() and .delete() are stuck for some containers, what might be the cause?
On one of three identical machines running Ubuntu:22.04 and Python 3.10.12 I'm encountering a strange problem with aiodocker: await client.containers.get(ident) and await container.delete() are stuck ...
-1
votes
1
answer
2k
views
What is the correct Dockerfile to install pyodbc on python:3.10.9-slim-buster image?
I have been using this guide for Debian 10.
I also needed install g++ for the pyodbc package to be installed.
I am using this dockerfile:
FROM python:3.10.9-slim-buster
RUN apt-get update -y &&...
0
votes
1
answer
181
views
Executing docker exec concurrently
Actually the docker python sdk is working fine:
https://docker-py.readthedocs.io/en/stable/client.html
But I tried to perform docker exec with asyncio package simultaneously.
It seems not to be ...
0
votes
0
answers
81
views
How to connect database is running inside the container container from outside?
I have created postgres docker image using docker-compose up command.
docker-compose up command is also installing some python packages like poetry ,python3,pip etc. once container is up we are ...
-1
votes
1
answer
114
views
Execute pytest from another python script within docker
I have a test script written using pytest and it works fine when I execute it as standalone.
User:~my_workspace/python_project$ pytest path_to_script/my_script.py
Now I have to run this script with ...
0
votes
3
answers
2k
views
How does one run Great Expectations from Docker using a Dockerfile to build the image
I am pretty new to Great Expectations (GX) and very new to Docker, and now I am trying to combine the two. I can get a Docker image to build just fine, but when I try to run a container, it fails. I ...
1
vote
0
answers
1k
views
Why is it that when executing `build docker` I persistently see EOF?
Having gone through different solutions provided on this platform and surfing the web, my error keeps popping up again and again.
I am inclined to drop my question this time around.
While running ...
1
vote
1
answer
937
views
Docker for Python get DOCKER_HOST
I'm trying to find the DOCKER_HOST for my docker registry.
Looking at the sdk, I know it's possible to set the DOCKER_HOST.
But is it possible to find the current DOCKER_HOST been used?
import docker
...
1
vote
1
answer
1k
views
Bad Request ("error reading build args: json: cannot unmarshal number into Go value of type string")
Using docker python library,
UID = USER_ID = os.getuid()
GROUP_ID = os.getgid()
USER = getpass.getuser()
HOME = "~"
DIR = os.getcwd()
DOCKER_GID = ...
0
votes
0
answers
604
views
Docker-Compose not creating schema from local db while building docker image
I have created a docker-compose file with 2 services web and POSTGRES. When I run the below docker-compose file, it does not create tables that is in my local POSTGRES db. I have provided the ...
0
votes
1
answer
763
views
How to remove network with docker sdk for python?
I am using docker sdk for python.
I am creating a network like so
try:
client.networks.create(name=network_name, check_duplicate=True)
except docker.errors.APIError as ex:
...
-1
votes
1
answer
545
views
Python Docker client is not able to find Docker daemon
I am working on an ubuntu/windows dual booted system, with the following specifications -->
system-specs
And, my Python version is 3.9.7
So, I am trying to run the following python program using ...