Questions tagged [container]

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

  • Digital container format, a special class of computer file used for audio/video data
  • Container (abstract data type), in computer programming
  • Container (type theory), an abstract way of representing data structures using dependent types
  • Operating system-level virtualization, a server virtualization method often called containers
  • Web container, implements the web component contract of the J2EE architecture
183 questions
978
votes
15 answers

How to get bash or ssh into a running container in background mode?

I want to ssh or bash into a running docker container. Please, see example: $ sudo docker run -d webserver webserver is clean image from ubuntu:14.04 $ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS …
128
votes
1 answer

what's the main difference between Docker and Snap?

In recent c't (sadly paywalled) there is an article about Snap and Flatpak. This sounds very similar to Docker, lots of concepts are the same. Now my question what's the difference between Snap and Docker? Are those different use cases?
Sybil
  • 2,139
31
votes
3 answers

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 repos for Ubuntu are highly recommended to…
29
votes
2 answers

Unit docker.service could not be found

Is it necessary to connect the interfaces? Or might this be a firewall issue? thufir@dur:~$ sudo snap install docker docker 17.06.1-ce from 'docker-inc' installed thufir@dur:~$ sudo service docker start Failed to start docker.service: Unit…
Thufir
  • 4,631
22
votes
2 answers

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 packages could not be installed. This may mean that…
user1069309
19
votes
4 answers

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 log into. To restore this content, you can run…
onknows
  • 380
17
votes
1 answer

How does kernel support swap limit?

When i run docker info command on my ubuntu 13.04 with kernel 3.8.0-19-generic i got a warning no swap limit support How can i solve this? docker info Containers: 10 Images: 37 Driver: aufs Root Dir: /var/lib/docker/aufs Dirs: 59 WARNING:…
13
votes
1 answer

Why kernel version doesn't match Ubuntu version in a Docker container?

I have a Docker container built from Ubuntu 14.10. When I log in to the container to check the Ubuntu version and kernel version I see the following: root@~$>> lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: …
jcm
  • 233
11
votes
2 answers

How to pass file as argument for a dockerfile

Actually I'm not sure this can be done but I know there is always a hack , so I am enthusiastic about what you experts will say about this. l want to pass a package as an argument when building my docker image so that I can deploy separate app…
storm
  • 5,013
11
votes
1 answer

How do I copy a file/directory from host into a LXD container?

I have a file/directory on the host that I want to copy into the LXD container. What is the command to copy the host -> container?
Jake
  • 491
8
votes
0 answers

How to switch snap docker from inactive to active?

Why is it easy to switch docker from inactive to active on AWS: ubuntu@ip-172-31-14-19:~$ ubuntu@ip-172-31-14-19:~$ sudo snap services Snap Service Startup Current docker dockerd enabled active ubuntu@ip-172-31-14-19:~$…
Thufir
  • 4,631
8
votes
3 answers

Is it possible to run Docker container and show its graphical application window on host?

I have created the simpliest (minimal working example) Dockerfile to run graphical application on my Ubuntu 16.04 LTS host system with 19.10 insider container: mkdir ~/docker-xclock cat > ~/docker-xclock/Dockerfile << EOF FROM ubuntu:19.10 RUN…
N0rbert
  • 103,263
6
votes
3 answers

Is it possible to install rkt in Ubuntu?

Is it possible to install rkt (app container engine for Linux, in some ways similar to Docker) in Ubuntu? How? I just want to try it out on Ubuntu itself, without setting up a virtual machine running CoreOS.
Ram
  • 195
6
votes
2 answers

Modifying sysctl values inside lxc container

I have made several linux containers using the normal userspace tools (not docker), and I have been setting up a test environment. I want to set up two containers to try out heartbeat, which requires the containers to bind to and ip address that is…
Ace
  • 316
6
votes
1 answer

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 permissions to the user that I am using, to root, to…
1
2 3
12 13