Docker entry point cannot find directory/file

I’m trying to run a simple Linux program that interfaces with /dev/net/tun in a Docker container. My project consists of three files, ctuna.c, the source file for my program which contains a call to open("/dev/net/tun", …), a Makefile and the following Dockerfile which builds and runs my program: FROM ubuntu:latest AS base RUN set -ex; […]

By Peter
Published
Categorised as docker, dockerfile Tagged ,

Docker containers become unresponsive/hang on error

I’m running Docker Desktop on Windows and am having a problem with containers becoming unresponsive on startup errors. This doesn’t happen ‘every’ time, but by far most of the time. Consequently, I have to be very careful to start my containers 1 at a time, and if I see one error, I have to "Restart […]

By Peter
Published
Categorised as docker, docker-compose, freeze, windows Tagged , , ,

docker run simply returning error on windows terminal

I followed the docs instructions and guess what… it failed Running on win 11 21H1 22000.348 shell error Source: Docker Questions

By Peter
Published
Categorised as docker Tagged

Docker compose and listener in a pre created AWS Load Balancer

I have a service deployed with docker compose but I’m using a pre-created cluster and load balancer in AWS. I want to use https in my service so I’d need docker compose to create a new listener ( port 443) in the load balancer that I have and forward traffic to the target group that […]

Docker compose and Fargate rollbacks

I’m trying to improve my service by setting a rollback strategy in case my changes crash the container and keep the tasks exiting. Context: I have a simple service that I update changing the tag. services web: image: AWS-Account-Id.dkr.ecr.us-east-1.amazonaws.com/my-service:1 environment: – ENV=dev ports: ["80:80"] I make some change in the docker image, build, tag, and […]

By Peter
Published
Categorised as amazon-ecs, docker, docker-compose Tagged , ,

Issue with ecs-searchdomain-sidecar in ECS with docker-compose

After deploying, I go to my cluster and I see my service and within my service the task. When I click on the task I have 2 containers: my-app App_ResolvConf_InitContainer my-app is running and working as expected, but, the App_ResolvConf_InitContainer appears as STOPPED. When I expand it to see more information it shows: The image: […]

Docker and Node .mjs files

I have an express application with all the JS files using the *.mjs extension. So, to start the server I do node index.mjs and it works as expected. Now I’m trying to containerize the app. I have this basic Dockerfile FROM mhart/alpine-node:14 WORKDIR /app COPY package.json /app RUN npm install COPY . /app CMD node […]

By Peter
Published
Categorised as docker, node.js Tagged ,

Docker buildx hangs when building image for arm64 using multi-stage Java build

I’m trying to build an arm64 Docker image for a Spring Boot app which uses multi-stage build. buildx or rather qemu hangs on unpacking step using jar -xf ../*.jar. One of the CPU cores uses 100% and the process runs infinitely. At the same time buildx can successfully build arm64 images for my non-Java projects. […]

By Peter
Published
Categorised as arm, buildx, docker, jar, spring-boot Tagged , , , ,

Docker buildx command-line completion

Is there a command-line completion available for docker buildx? My Docker version has completion available out-of-the-box for most of the commands but not for buildx. I also have bash-completion for docker compose from Docker website, but I couldn’t find anything for docker buildx. $ docker version Client: Docker Engine – Community Version: 20.10.8 API version: […]

By Peter
Published
Categorised as buildx, docker Tagged ,

docker cp – no such file or directory

I’m newbie in Docker. I need to copy a file from my laptop to Docker. I have a file in /home/username/folder/filename. I’m using AWS EC2. So I’m running the instance and trying to do the following: docker cp /home/username/folder/filename container ID:/parent folder/childfolder But I’m getting the error lstat /home/ec2-user/foler: no such file or directory But […]

By Peter
Published
Categorised as docker Tagged

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq