Questions tagged [linux-containers]

Linux containers (LXC) is an operating system–level virtualization method for running multiple isolated Linux systems (containers) on a single control host.

Linux containers (LXC) is an operating system–level virtualization method for running multiple isolated Linux systems (containers) on a single control host.

https://linuxcontainers.org/

224 questions
9
votes
1 answer

Propagate a mount from child namespace to the parent namespace?

How do I propagate a mount created in a child namespace to the parent? Details I am trying to create a tool leveraging overlayfs for allowing writes over a read only directory. The tricky bit is that I would like any user to be able to use it…
Brandon Ogle
  • 715
  • 1
  • 8
  • 23
9
votes
5 answers

How do I run my Go application in the scratch container as the user "nobody?"

I don't want to run anything in a docker container as root. And I want minimalistic images. I can run my compiled Go app in the scratch-image without a problem. But when I don't want it to run as root (i assume its running as root) and define USER…
somedude
  • 154
  • 1
  • 8
9
votes
5 answers

What use cases of Docker on real projects

I have read what the Docker is but having hard time finding of what are the real scenarios of using Docker? It would be great to see here your usages.
Ivan Voroshilin
  • 5,233
  • 3
  • 32
  • 61
9
votes
1 answer

Starting Xserver in Docker Ubuntu container

I have minimal Ubuntu installation in my container and I want to have Xserver running. I need XServer, because my app requires meshlabserver, which itself needs Xserver. I installed xserver-xorg and all other packages, but when I try to start X in…
Aleksei Petrenko
  • 6,698
  • 10
  • 53
  • 87
8
votes
1 answer

How to properly install certificates on Docker in ASP.NET Core application?

I've been digging around the net and Stackoverflow and I've had some trouble solving a problem I have. I am trying to standup my ASP.NET Core application into Docker. I have the following cert, let's call it, "FooCert.pfx". I have a copy of…
7
votes
2 answers

Podman how remove all exited containers if there are many

On a server running containers with Podman I just realised, there are many containers with "Exited" status and wanted to remove all of them in one go. How can I do it with Podman?
NIK
  • 1,089
  • 13
  • 22
7
votes
0 answers

No Final Strategy for running Linux container on Windows Server 2019

I am quite confused with the strategy of providing the Linux container support on Windows. I have Heard alot about LCOW and WSL to run linux container but I am still not sure why they are not providing the support of Linux Container using MOBY VM as…
7
votes
2 answers

Docker - Why is this express.js container with an exposed/published port reject connections? (using boot2docker)

I have a simple hello world express.js application inside of a docker container. It's set to run on port 8080 and the docker file exposes this port in the image. Additionally, I publish the port when I run the image. Yet when I try to make a simple…
Jim Jeffers
  • 17,572
  • 4
  • 41
  • 49
7
votes
2 answers

Docker error while creating couchbase - ulimit: open files: cannot modify limit: Operation not permitted

I am trying to create a docker image for Couchbase and i get the following error with the dockerfile on CentOS image. # expose default port EXPOSE 8091 ENV PATH $PATH:/opt/couchbase/bin RUN cd /var/tmp &&\ wget…
cucucool
  • 3,777
  • 8
  • 48
  • 63
6
votes
0 answers

Docker container exits immediately in Linux Server

I have built an image with simple ASP .NET Core 2.0 App in Alpine Docker. When I run the Linux container on Windows Power-Shell, everything is fine. But if I run the Linux container on a Linux Server in PuTTY, the container will immediately exit…
Jiayi
  • 61
  • 4
6
votes
2 answers

What is the docker command to run jenkins container in windows

What is the correct docker run ... command to run jenkins container. What are the required ports? How to mount volume D:\jenkins folder to jenkins job configuration path? I'm using linux containers on windows 10.
sithumc
  • 3,254
  • 8
  • 27
  • 46
6
votes
3 answers

Restarting named container assigns different IP

Im a trying to deploy my application using Docker and came across an issue that restarting named containers assigns a different IP to container. Maybe explaining what I am doing will better explain the issue: Postgres runs inside a separate…
miki725
  • 27,207
  • 17
  • 105
  • 121
5
votes
1 answer

How to Update a K8s Deployment with More Replicas

I've created a simple K8s deployment with the kubectl create command kubectl create -f k8-deployment.yaml My k8-deployment.yaml file looks like this apiVersion: apps/v1 kind: Deployment metadata: creationTimestamp: null labels: app:…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
5
votes
3 answers

fail: Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgery

I have 4 docker container in a yml file. Db container Identity Server Container (asp.net core application with identity server) Api Server (asp.net core application) Client (Angular 9 app) Everything works well on development windows machine and…
5
votes
2 answers

Getting error while switching to Linux Container in docker

I have installed docker. When its running in windows container it works fine. But if i switch to Linux container getting below error. Os: Windows 10 Docker Desktop: 2.2.0.3 Error: Docker.Core.Backend.BackendDestroyException: Unable to stop Hyper-V…
1 2
3
14 15