I'm attempting to find the equivalent of
docker run -it networkstatic/nflow-generator -t localhost -p 9995
when using the docker API (I'm using dockerode, but an answer for the HTTP api is just as good). I tried this with no…
I'm working on docker api python client,I have successfully done with build image, but now I need to push that docker image to dockerhub repository.
Here's what I have tried:
From views.py
client = docker.from_env()
…
I'm trying to build docker image from a GitHub repository using docker api python client.
Here's what I have tried:
From views.py
if request.method == 'POST':
post_data = request.POST.copy()
post_data.update({'user':…
I'm trying Docker API python library, but couldn't get a little success, have go through the docs.Actually I'm trying to login to docker using API.
Here's my python Code:
import docker
config = os.path.join(BASE_DIR, 'IGui') + 'config.json'
client…
I'm trying to execute a command in a running docker container through the Docker Engine API with cURL. I'm following the instructions in the API doc.First I create an exec instance and as a response I receive the ID of the created exec.
Then I use…
I hope someone will be able to help me. I'm using Dockerode to make actions on my Docker containers via JavaScript.
I have some hard times to get the name of a single container. The request is "get the name of the container who has the id XXX" but I…
I'm trying to create a Docker image from a file on a Docker host using the Python docker API.
The client is running on a different host, so I would like to avoid downloading a file to the client and then uploading it to the Docker host.
This…
I am running docker with kubernetes.
I need to find out when the last time docker container is used by a user.
I am creating one container per user.I have to kill that container if the user has not interacted with the container for a specific…
I have several containers that are running on my Centos7 VM and I would like to retrieve their CPU and Memory usage using the following command:
echo -e "GET /containers/(container_name)/stats HTTP/1.0\r\n" | \
nc -U /var/run/docker.sock
However,…
I just want to create a service using docker. i created using command line but i didn't find rest call for doing the same . regret if its a silly question please do help i am a beginer
Previously to trying out docker swarm mode api I have set up docker remote api with tls authentication with the help of https://docs.docker.com/engine/security/https/. Now i have my /usr/lib/systemd/system/docker.service configured…
I am using Docker Remote API to run some commands, and I realised that the status is 200 even when the command I pass to it fails.
Example:
curl -H "Content-Type: application/json" -X POST -d…
I have a problem when I launch a Ansible role for to install Docker in a CentOS 7 VM.
When the docker-login task runs I have the following error:
"msg": "Docker API Error: client is newer than server (client API version: 1.24, server API version:…
I'm trying to fetch the list of official images from docker hub using v2 api. If I try to do curl or use postman, I get the response correctly, but when I try to fetch the list using angularjs service, I get the following error
XMLHttpRequest…