All Questions
1,738
questions
1
vote
0
answers
22
views
Docker build for go-fitz and go-tesseract
I'm trying to use Docker to containerize a Go application that has go-fitz and go-tesseract as dependencies.
This is what I have so far:
FROM golang:alpine
WORKDIR /app
# Install dependencies for go-...
-2
votes
0
answers
19
views
Docker container stop is not sendind OS signal to Golang app [duplicate]
I have the following simple Golang application, waiting for SIGINT/SIGTERM, logging something and waiting 10 sec to shutdown.
package main
import (
"context"
"fmt"
&...
1
vote
1
answer
21
views
Install a NPM module in docker image and run it with golang app, using Google App Engine flex
I'm trying to install a NPM module in docker image and run it with golang app (flex), using Google App Engine.
main.go:
package main
import (
"fmt"
"os"
"os/exec&...
0
votes
0
answers
43
views
Different output between Go exec.Command() and shell script vs direct terminal execution for CLAN kideval in Docker container
I'm maintaining a server for school but encountered a strange error after a version update Using Docker with Ubuntu:jammy as the operating system
The issue arose when the results of exec.command() in ...
1
vote
1
answer
58
views
How to pin an indirect dependency in Go without using replace
I am using the testcontainers go module.
This has a dependency on docker's go module.
This depends on an in-toto module on version v0.5.0.
The in-toto module at that version depends on go-...
1
vote
1
answer
31
views
Go unit test using testcontainers on linux and WSL
I have some Golang unit tests which utilise testcontainers and the problem is that when run native on linux I get
Expected nil, but got: topology.ServerSelectionError{Desc:description.Topology{Servers:...
0
votes
0
answers
52
views
Docker CMD could not find executable
My Dockerfile to build Go executable and pack into container looks like:
FROM golang:1.23.2 AS builder
COPY . /github.com/vbulash/auth/src/
WORKDIR /github.com/vbulash/auth/src/
RUN go mod download
...
1
vote
0
answers
60
views
Go Mod Download in a SSH only nested private repository in a docker container
I am currently trying to build a go application in a docker container.
This go application uses some private golang modules, that are hosted in subgroups of private repositories. The nesting can be 3 ...
0
votes
2
answers
81
views
Go with Postgres and Docker - 127.0.0.11:53: no such host
I use docker compose to run my application on a VPS server. It consists of a golang backend and PostgreSQL DB. While the backend connected to the DB completely fine on my PC, it fails to do so on the ...
0
votes
1
answer
64
views
Getting 403 error of Google Cloud API only inside Docker
A couple of days ago my Google Cloud APIs started to return 403 error.
rpc error: code = PermissionDenied desc = unexpected HTTP status code received from server: 403 (Forbidden); transport: received ...
2
votes
1
answer
189
views
How to use dockerized dbus for inter process communication on MacOS?
Maybe it is a bit of an exotic question, but somehow I don't get if it is possible to have dbus up and running in a docker container and to use it as a message middleware.
The actual use case looks ...
0
votes
0
answers
36
views
How to handle Ctrl+C when executing a process using Go Docker SDK?
I have a Docker container running indefinitely with a default command tail -f /dev/null that I created and started using Go Docker SDK:
...
config := &container.Config{
Image: "...
0
votes
0
answers
33
views
Deploying two apps in a DigitalOcean droplet doesn't work
I have two different apps with two different docker-compose.yml files in different directories.
I have a python flask app that fetches data from internet and stores it in a PostgreSQL database. This ...
1
vote
1
answer
110
views
ChromeDP and high CPU usage (Golang)
I use chromedp with Go to transform html pages into images (using screenshot method) but it uses a lot of CPU. Is it ok and can i optimize it? Here how i use it (i tried to open first tab, but ...
0
votes
0
answers
116
views
Unexplained Memory Spikes with Dockerized Go Application and PostgreSQL/Redis Setup
I'm not sure if this is a ServerFault issue, but I will try to post this here first, as my software is programmed with go.
So have I Ubuntu 22.04, running the following:
docker and docker-compose
...