Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
-1 votes
2 answers
318 views

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 ...
Shane Volpe's user avatar
0 votes
1 answer
222 views

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/...
SomeGuy's user avatar
  • 61
0 votes
0 answers
68 views

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 ...
Innovations Anonymous's user avatar
1 vote
0 answers
64 views

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 ...
frans's user avatar
  • 9,958
-1 votes
1 answer
2k views

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 &&...
jayt.dev's user avatar
  • 1,035
0 votes
1 answer
181 views

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 ...
Nikolai Ehrhardt's user avatar
0 votes
0 answers
80 views

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 ...
Prashant kamble's user avatar
-1 votes
1 answer
114 views

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 ...
deepu's user avatar
  • 177
0 votes
3 answers
2k views

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 ...
Timmy Beatty's user avatar
1 vote
0 answers
1k views

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 ...
SPa's user avatar
  • 41
1 vote
1 answer
917 views

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 ...
user3292394's user avatar
1 vote
1 answer
1k views

Using docker python library, UID = USER_ID = os.getuid() GROUP_ID = os.getgid() USER = getpass.getuser() HOME = "~" DIR = os.getcwd() DOCKER_GID = ...
Gulzar's user avatar
  • 28.7k
0 votes
0 answers
599 views

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 ...
Ziv's user avatar
  • 85
0 votes
1 answer
748 views

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: ...
Gulzar's user avatar
  • 28.7k
-1 votes
1 answer
539 views

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 ...
frazer mitt's user avatar
0 votes
0 answers
484 views

I have some simple code that to test the performance of aiokafka library. I am using a Windows computer, running Docker for Windows, and a virtual machine with 8 cores. The library aiokafka seems to ...
tacos_tacos_tacos's user avatar
2 votes
1 answer
3k views

I'm new to use docker and I'm facing to problem to install python in docker based on .net core 5.0 I followed simple tutorials and applied it to server successfully. And I'm trying to apply it to make ...
takeyourcode's user avatar
0 votes
0 answers
490 views

I am trying to compile and run python code in Docker. Dockerfile FROM python:3 WORKDIR /app USER root ADD . . RUN chmod a+x ./main.py RUN chmod a+x ./run.sh ENTRYPOINT ["sh","./run.sh&...
xineta5158's user avatar
0 votes
1 answer
489 views

I want to create a service in existing swarm network using python docker sdk. I have a swarm network named test_net. Installation of library : pip3 install docker Below is the code used for creating ...
Nisarg Shah's user avatar
0 votes
1 answer
663 views

I followed this link - https://docs.docker.com/engine/api/sdk/examples/ and the docker SDK worked fine while I was using Docker containers. Now that I have moved to K8s, when I run the code I get ...
Arun Chandramouli's user avatar
0 votes
1 answer
645 views

I'm trying to perform an automation using docker package of python. In that I tried to read the logs with tails with below code, But it is showing nothing. import docker z=docker.from_env() dkg = z....
Aaditya R Krishnan's user avatar
6 votes
0 answers
4k views

As part of docker automation am trying to automate certain docker operation using python docker package. Well I have implemented the most of requirement successfully, But could not find an equivalent ...
Aaditya R Krishnan's user avatar
-1 votes
1 answer
304 views

I read in an old thread that the dockerized selenium grid is a resource hungry process. I am trying to run 250 to 300 selenium tests in parallel, and after some research I found out I have 3 options: ...
Sam's user avatar
  • 99
1 vote
1 answer
556 views

I am trying to build a docker to host my Discord bot. The dockerfile is FROM python:3.8 COPY ./Elevate/* /docker/ RUN python3.8 -m pip install discord.py==1.5.1 RUN python3.8 -m pip install -r docker/...
Teddy Rasmussen's user avatar
0 votes
0 answers
346 views

I am trying to run a docker container to copy files from a volume to a local folder: import docker client = docker.from_env() stdout = client.containers.run( "alpine", mounts=[ ...
Christian's user avatar
  • 1,451
2 votes
2 answers
2k views

I would like to obtain the created at date for a docker image using docker API. Is this possible? I don't see it in the docs https://docker-py.readthedocs.io/en/stable/images.html. I see a way to ...
py_noob's user avatar
  • 543
2 votes
2 answers
2k views

I would like to get the container name by passing container id. I have tried below for getting that but unfortunately it didn't worked for me. import docker def get_container_details(self,container=...
Aaditya R Krishnan's user avatar
1 vote
0 answers
632 views

I would like to get the images and image ids of a number of docker images (over 100+). I can't pull all these images on my local machine to fetch the image ids. Is there a way using docker api or ...
py_noob's user avatar
  • 543
1 vote
1 answer
350 views

I would like to use the module "pymysql" with the official python container https://hub.docker.com/_/python The only way I found so far is to make my own container like this: FROM python:...
Marc's user avatar
  • 1,098
1 vote
1 answer
322 views

I am able to build docker image using python sdk. if the dockerfile is available on my local machine. client = docker.from_env() image, build_log = client.images.build(path = "./", tag=...
karas27's user avatar
  • 375
1 vote
1 answer
1k views

I am trying to get the docker container stats inside my python code after running the container as shown below. I am referring to python docker SDk https://docker-py.readthedocs.io/en/stable/index....
mounika kommineni's user avatar
4 votes
1 answer
9k views

I want to replace the below command with docker python sdk docker exec 6d9c9b679541 /u01/app/oracle/product/12.0.0/dbhome_1/bin/sqlplus sachin/sachin@orcl @1.sql here is code i am writing and the ...
Sach's user avatar
  • 171
0 votes
1 answer
745 views

Below is my sample c program #include <stdio.h> int main() { int x, y, z; scanf("%d%d", &x, &y); printf("%d,%d" ,x,y); z = x + y; printf("%d", ...
mounika kommineni's user avatar
0 votes
1 answer
1k views

I'm trying to convert the following docker run command to python docker run: docker run -v ${HOME}/mypath/somepath:/root/mypath/somepath:ro -v /tmp/report/:/root/report -e MY_VAR=fooname DOCKER_IMAGE ...
Stupid.Fat.Cat's user avatar