Questions tagged [docker-api]

Use this tag with the Docker Engine API.

Docker runs as a client-server accepting request via the Docker Engine API.

Image

189 questions
0
votes
1 answer

How to remove files inside a container using the Docker API

Please advise, how to remove files inside a container using the Docker API? I have tried to do it this way, but it doesn't work curl --location --request POST 'http://192.168.1.55:5555/containers/{id}/exec' \ --header 'Content-Type:…
PunKHS
  • 47
  • 5
0
votes
1 answer

How Can I Specify My Docker API Settings in Golang?

I have enabled API on my remote ubuntu server on 2375 port.I want to develop a go application that using Docker API from remote.In examples and tutorials i can not see any options section that specify Docker API Server settings.Probably it is taking…
akuscu
  • 465
  • 1
  • 3
  • 13
0
votes
2 answers

No such image in gitlab-ci with docker-in-docker

I'm use docker-api in my rails project. I'm need create containers with my custom image. .gitlab-ci.yml: variables: DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "" DB_HOST: postgres RAILS_ENV: test build: stage: build image:…
0
votes
2 answers

How run image as daemon in ruby docker-api?

i'm need docker-api method that will allow me to run image as daemon. Docker command for reference: docker run -t -d some_image Does anyone know a solution?
0
votes
1 answer

Access to service list on docker swarm worker node

I am using docker-API module for accessing service list and the replica information. It works better in swarm-mode and on manager node. But if the app goes on worker node, it gives me the following error "unexpected - This node is not a swarm…
aryan
  • 163
  • 1
  • 1
  • 11
0
votes
1 answer

Docker engine API in a swarm

I have a swarm with 2 nodes where I create two services. One on each node. The service running on manager node is using the docker engine API to get some information. My question is: Is it possible to obtain data from the container running on the…
MLGonc
  • 99
  • 2
  • 12
0
votes
0 answers

How to get the rest response code of golang docker client on starting a container?

When I do curl -X POST -v --unix-socket /var/run/docker.sock http://docker/containers/container_name/start I got response codes like 204, 304, 404, 502 How to get the same response codes from the golang docker client? As of now, startcontainer…
charanReddy
  • 137
  • 1
  • 11
0
votes
2 answers

not able to use packages in vendor directory in docker's repository

I am trying to create a container with docker's go api. I want to expose a port using container.Config.ExposedPorts in ContainerCreate()API. Below is the code package main import ( "fmt" "context" …
Vignesh k
  • 131
  • 2
  • 10
0
votes
1 answer

not able to run startup command in container created via docker-engine's go sdk api

I am trying to create a container with docker engine's go sdk api. I need to run a command on startup in the container, which I pass as a parameter to Client.ContainerCreate() api. I tried passing that command in different ways, but everytime found…
Vignesh k
  • 131
  • 2
  • 10
0
votes
1 answer

Docker REST API : Create Image issue : Need help for parameter fromSrc:

Hi Guys need your help. I am creating an Image via docker REST API. The link mentioned for parameter fromSrc following is the description : fromSrc: Source to import. The value may be a URL from which the image can be retrieved or - to read the…
0
votes
1 answer

Volume mount option 'z' using docker golang library

How to pass z flag for volume mount using docker golang library ? For supporting Selinux
0
votes
1 answer

Golang Docker API: get events

I want to get all new events from docker via the golang integration. The problem is that it returns two channels and I couldn't figure out how to subscribe to them. cli, err := client.NewClientWithOpts(client.WithVersion("1.37")) if err != nil { …
derich
  • 181
  • 1
  • 1
  • 11
0
votes
1 answer

Authenticate ECR via Docker Remote API

I need to login to my AWS ECR repository so it can pull whatever images it needs by using API. I need to translate what aws ecr get-login --no-include-email --registry-ids command does using Docker API. For example -- [Solved] API…
devashish-patel
  • 663
  • 1
  • 7
  • 15
0
votes
1 answer

node.js request to docker api gives always error 400

I get always an error 400 when I try to connect to docker api. When I try it with curl I get an response. const request = require('request'); request('http://unix:/var/run/docker.sock:/v1.37/info', (error, response, body) => { …
mover
  • 57
  • 6
0
votes
0 answers

docker api is not showing memoryReservation value when run in kubernetes

I have specified memory limit and request when starting the containers in kubernetes. resources: limits: memory: 500Mi requests: memory: 200Mi When i do "kubernetes describe nodes", i am able to see the limits, Non-terminated…
Venkat Teki
  • 2,233
  • 4
  • 21
  • 28