Questions tagged [container]

Questions concerning container in Digital container format, programming, type theory, Operating system-level virtualization, Web container, etc.

Filter by
Sorted by
Tagged with
1 vote
0 answers
68 views

What's the recommended way of installing Podman 4 in Ubuntu 22.04?

Ubuntu 22.04 only has Podman 3.4.4 in its repos and the former PPA for latest Podman was discontinued for 22.04 Kubic packages have been discontinued for Ubuntu 22.04 LTS. Current users of the Kubic ...
user avatar
0 votes
0 answers
34 views

Ubuntu without containers?

Is it possible to configure later (20+) versions of Ubuntu to NOT (ever) use containers such as snap and docker? So tired of seeing these tools consume all the resources. Would prefer to run ...
user avatar
0 votes
0 answers
94 views

podman: OCI Runtime crun is in use by a container, but is not available (not in configuration file or not installed)

I'm not sure why I am getting this error: $ podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b18ec89fc0ec docker....
user avatar
  • 267
0 votes
0 answers
53 views

podman container ip address should remain same with disconnect and connect

Assume podman network net1 and container cont1. I connect podman network to a container during creation with --net net1. Also use podman network disconnect/connect net1 cont1 commands to dis-and-...
user avatar
  • 1
0 votes
1 answer
39 views

LXD export backup failed. Snapshot error

I tried to make lxc backup and get's error that failes on some snapshot for 2 years ago. run test command lxc export backup /tank/local/lxd/backups-temp/backup_test.tar.gz -v Error message: Error: ...
user avatar
  • 1
0 votes
2 answers
2k views

How to access the filesystem inside Docker containers on Ubuntu 20.04?

I need to access a file system of a docker image, but when I use the path /var/lib/docker this is what I get buildkit/ containers/ image/ network/ overlay2/ plugins/ runtimes/ swarm/ ...
user avatar
0 votes
0 answers
34 views

Namespace isolation

Can namespace isolation be used to prevent a process from seeing the host directory tree. Or only allowing the process to see a part of the host directory tree or perhaps a completely different type ...
user avatar
0 votes
0 answers
79 views

Service takes a long time to shutdown

I recently started practicing kubernetes on my local machine which is ubuntu 21.04L in a virtual machine (VMWare). Whenever I shutdown it is stuck for few minutes for containerd-shim with the ...
user avatar
0 votes
0 answers
312 views

How to authenticate when connecting to a proxy server inside ubuntu-based docker container?

I am building a docker container that should use proxy server when sending HTTP requests. Unfortunately I can't get it to work - I can't authenticate to the proxy from inside the container, even ...
user avatar
0 votes
1 answer
89 views

How to download ubuntu container image from Canonical Partner Images website

I am new to Ubuntu/Linux. I am shifting to Ubuntu because of development problems in Win10 environment. I have installed docker. I wanted to run Linux containers on Windows and visited the website: ...
user avatar
0 votes
0 answers
103 views

Stress-ng stress memory with specific percentage

I am trying to stress a ubuntu container's memory. Typing free in my command terminal provides the following result: free -m total used free shared buff/cache ...
user avatar
0 votes
0 answers
53 views

Why are processors seemingly so active on an Ubuntu 20.04 Server with no appreciable services running in an LXC container?

On a minimal Ubuntu 20.04 server that's just been set up (and with some services disabled), I'm finding that htop is conveying that there's more processor activity going on than what I figure should ...
user avatar
2 votes
1 answer
8k views

Docker-compose mounted file system operation not permitted for volume

I am experiencing a problem with docker-compose, its mounting a volume in a folder on a mounted hard drive. I have seen lots of solutions out there and honestly tried them all. I changed the ...
user avatar
0 votes
1 answer
65 views

login and pwd requested to use terminal inside a VM created by LXD

I'm pretty new to Linux Containers. I followed these indications: https://linuxcontainers.org/lxd/getting-started-cli/#ubuntu to install and use LXD in Ubuntu 20.04 (base) raphy@pc:~$ snap install lxd ...
user avatar
  • 121
1 vote
0 answers
40 views

Error creating i386 lxc container on hirsute - does this work?

Attempting to create an i386 LXC Container on my amd64 host using: sudo lxc-create -t ubuntu -n ubuntu32 -- --bindhome $LOGNAME -a i386 Results in: dpkg: error processing package console-setup-linux (-...
user avatar
  • 111
2 votes
0 answers
466 views

Open a GUI in a Docker container running on a headless machine

I'm trying to open Firefox GUI on a Docker container. I'm avoiding most common solution which seems to use at one point /tmp/.X11-unix from host because I want the container to work on any host, ...
user avatar
0 votes
1 answer
70 views

Docker Container of an entire LINUX OS

Can a Docker container be built from an entire LINUX machine? We have an AWS AMI of the OS. Can that be used instead of an application?
user avatar
1 vote
0 answers
646 views

unable to start a LXC container - lxc-start: lxccontainer.c: wait_on_daemonized_start: 804 Received container state "STOPPING" instead of "RUNNING"

Im very much new to LXC and LXD concepts. I was experimenting with LXC's by creating a containers and destroying them. after some experiments, I tried to create a container to implement by task, was ...
user avatar
  • 11
0 votes
0 answers
67 views

secure docker prometheus container with ssl certificate?

I want to secure docker prometheus container with ssl certificate. the problem is prometheus container dosn't have nginx or apache2 webserver to put certificate into their configuration folder. so ...
user avatar
  • 1
1 vote
1 answer
252 views

Containers loses its volumes which are autofs sshfs mounted from a remote server to the host. How can I autorecover when the mount is down

I use autofs to mount a remote folder via sshfs to my local machine. On the local machine I have a docker container running which uses the same mount as a volume. If for whatever reason the mount is ...
user avatar
  • 51
1 vote
0 answers
223 views

Running a VM with old version of Ubuntu, what to use?

I am currently using Ubuntu 20.04, but I still have my old PC with Ubuntu 10.04 installation, and I want to keep it available for occasional use (because there are some things in that version that ...
user avatar
  • 6,634
0 votes
0 answers
13 views

Do the configurations done inside a docker container persist after creating an image out of it?

Good day, I have tested multiple containers and every works fine. now I wanted to transfer those dockers into another machine without further configurations. My first attempt is to create an image out ...
user avatar
2 votes
0 answers
904 views

Docker Fails When It's Run From System

Problem I can run docker manually sudo dockerd or /etc/init.d/docker start but not as a service. System Linux g4070 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 ...
user avatar
0 votes
0 answers
723 views

Encrypt a directory mounted to docker container

I have a directory on my Ubuntu 18.04 server which is mounted to the root folder of my Apache docker container. I want a way to get the entire directory encrypted by default. That means whatever data ...
user avatar
  • 111
0 votes
1 answer
383 views

lxd host shows high memory usage not equal to the sum of lxc guest usage

I just want to understand with my lxd host shows high memory usage (more than 80%) while the sum of all guest container memory is way less than that? host:~$ free -h total used ...
user avatar
2 votes
1 answer
5k views

ssh connect to host port 22: Connection refused

So I have a docker container and I want to connect to it with ssh from host(I know it's not indicated to ssh to a docker container, but I need to do it). I have installed open ssh server on both ...
user avatar
1 vote
1 answer
57 views

What are my licensing obligations when publishing a container built on ubuntu?

I'm part of a group that publishes workloads as containers, and we want to use Ubuntu as a base layer. We've reviewed the licensing terms for Ubuntu here, however it is still unclear if Ubuntu itself ...
user avatar
  • 11
0 votes
1 answer
525 views

Why python3-pip installs python3.6 as a dependency?

I'm on Ubuntu 18.04; I expect pip to be installed for python3.8 when I do the following: apt update apt install python3.8 ln -sf /usr/bin/python3.8 /usr/bin/python3 ln -sf /usr/bin/python3 /usr/bin/...
user avatar
17 votes
2 answers
25k views

docker.io : Depends: containerd (>= 1.2.6-0ubuntu1~)

I'm having a problem to install docker in Ubuntu 20.04. wolf@linux:~$ sudo apt install docker.io Reading package lists... Done Building dependency tree Reading state information... Done Some ...
user avatar
0 votes
1 answer
139 views

Verify snap application runs in a container

I'm new to snap (snapd), but from what I have read the snap support sanboxed app environments out of the box (Snap vs Flatpak vs AppImage). Question: Is it there a way for me to verify that the ...
user avatar
1 vote
1 answer
7k views

How do i access docker containers from an other computer

I want to expose my docker container to other machines connected to the same network (if matters, wifi network). Locally (call it PC1 for example), I expose my apache2 server as 8080:80 using docker - ...
user avatar
  • 408
0 votes
1 answer
521 views

Auditd on Ubuntu 18.04 Container

i want to ask something about auditd in container, here we go recently i try install auditd in my server (outside container) and it worked i follow this steps (https://documentation.wazuh.com/3.13/...
user avatar
2 votes
0 answers
744 views

How to enable Networking inside a `systemd-nspawn` container?

How can I get networking to work inside a systemd-nspawn container in Ubuntu 20.04? I want the container to get an IP address from local DHCP server, perform DNS lookups using my configured name ...
user avatar
  • 10.9k
4 votes
1 answer
9k views

Cannot kill container: foo: Container foo is not running

Perhaps kill is incorrect terminology, or I'm at least using it incorrectly. How do I destroy docker containers? Put them in the trash. Delete. Remove. Erase. docker container kill $(docker ps -a -...
user avatar
0 votes
0 answers
21 views

How to configure group settings for docker admin? [duplicate]

Listing docker containers: docker ps -a -q error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/...
user avatar
1 vote
0 answers
1k views

Ubuntu inside Docker-container : apt-get update failure (Error writing to output file)

On my Docker platform, I created a container (docker run -it --name UBUNTU ubuntu bash) and it works (Up + logged into as root) But when I try to update repo with "apt-get update" I get : root@...
user avatar
  • 11
0 votes
1 answer
96 views

How to recognize if a Ubuntu VPS runs as a container?

I got plenty of VPS from two hosting providers, one of them is on KVM and I recognize that by this answer. I have a container VPS and this procedure doesn't work. I want to recognize how to figure ...
user avatar
2 votes
1 answer
506 views

Installing singularity-container in version 3.3 from a repository

On ubuntu 18.04 I'm looking to install via apt the container software Singularity in version 3.3 or above. However ubuntu's default repo universe offers Singularity (as the package singularity-...
user avatar
  • 141
0 votes
1 answer
202 views

Installing okular via apt-get on bionic gives me [duplicate]

On Ubuntu 18:04 Bionic (installed as a Singularity container) I issue apt-get install okular and I get the message "E: Unable to locate package okular". Why? Is okular not in the apt repositories ...
user avatar
  • 141
3 votes
1 answer
3k views

How to get coredump from process crashed inside a docker container using apport?

We have a bunch of microservices, published as docker images, and run them on-premise for local testing and in AKS k8s cluster. We use ubuntu 16.04, because currently AKS uses it. We would like to ...
user avatar
4 votes
2 answers
29k views

How do I edit php.ini in a docker container?

So I'm running the wordpress docker container and I want to increase the upload file size limit set in php.ini. My problem is I can't find that file anywhere. I installed the container with a docker-...
user avatar
0 votes
1 answer
45 views

container not stopping

I am trying to stop a container, but it is giving me this error every time, can you help?
user avatar
0 votes
1 answer
659 views

LXD proxy for DNS

I set up a bind server in a LXD instance and I try to forward all DNS queries from host to this instance. I tried this: sudo lxc config device add bind dnsdevicetcp proxy listen=tcp:0.0.0.0:53 ...
user avatar
1 vote
1 answer
169 views

LXDhost doesn't report packages to landscape in container

Good day fellas, I have landscape running in a lxd container. Containers are in bridge mode. I added the lxdhost to landscape, which worked fine and it connects normally as far as I can tell. However ...
user avatar
3 votes
1 answer
595 views

Run -E without sudo

Is there a way to run sudo -E bash - without the sudo command? I have the command curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - that I want to run inside an Ubuntu container where ...
user avatar
  • 2,171
0 votes
1 answer
271 views

Ubuntu Core container runtime

I would like to use Ubuntu Core with CSPs (Cloud Service Providers) See Canonical's announcement: https://ubuntu.com/blog/snappy-ubuntu-core-now-on-aws As many organizations would be using it with ...
user avatar
  • 13
2 votes
0 answers
264 views

Is it possible to use systemd-resolved as a container-level DNS forwarder? Specifically by Anbox

I'm using ubuntu 18.04 which has systemd-resolved enabled by default, and by convention the local 'virtual' DNS ip address set to 127.0.0.53:53. other dns services like dnsmasq are not installed, all ...
user avatar
4 votes
3 answers
9k views

How to prevent system from being "minimized"

Today I noticed a new message when I login to my Ubuntu 18.04 docker container. This system has been minimized by removing packages and content that are not required on a system that users do not ...
user avatar
  • 200
2 votes
1 answer
161 views

What is the most efficient way for creating hundreds of containers for single apps; LXC or Docker?

I do have a dedicated server and I need to create ~200 containers inside it. Each container will only run a single application and I'm looking for the most efficient way for this in terms of resource ...
user avatar
1 vote
0 answers
1k views

Run MySQL database with Docker Compose

I am stuck in an issue related with Ubuntu, Docker, share folders of Virtual Box. Sorry about that I am not able to specify more, but I have no idea what should be the source of the problem. It ...
user avatar
  • 11