Category : go

I’m learning Docker and trying to run my image on my Windows 10 PC. My Dockerfile looks like this: # Build the Go API- FROM golang:1.17 RUN mkdir /app ADD . /app WORKDIR /app/server RUN go mod download RUN go build -o main . CMD ["/app/server/main"] I then ran the command docker build -t my-go-app ..

Read more

I want to pull a docker image from my local system. Image name is : example cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation()) if err != nil { panic(err) } imageName := "example:latest" out, err := cli.ImagePull(ctx, imageName, types.ImagePullOptions{}) if err != nil { panic(err) } current code is giving me something like this : panic: Error ..

Read more

I want to run grades example proposed by apache beam go sdk using spark runner. However I get the following error. I do not figure the main problem because ssh and docker are installed and running. apache.beam.vendor.guava.v26_0_jre.com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: No container running for id 3b1aa5852a3b7dcdd675fe4f10b02a199fd958636f at org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2050) at org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache.get(LocalCache.java:3952) at org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974) at “` Source: Docker..

Read more

I am using two docker containers to develop a web app. Inside my golang docker container i have my web server, after submiting a form I want to process the inputs in my Python container. My first idea is to use golang: exec.Command(‘python3’, ‘script.py’, ‘args’) But I don’t know how to call the Python container, ..

Read more