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:…
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…
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:…
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?
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…
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…
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…
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"
…
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…
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…
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 {
…
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…
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) => {
…
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…