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
160 questions
976
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 …
Timur Fayzrakhmanov
  • 24,775
  • 10
  • 26
  • 35
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,067
  • 4
  • 21
  • 24
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,441
  • 17
  • 80
  • 146
21
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
20
votes
2 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…
alexanderadam
  • 909
  • 1
  • 8
  • 23
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:…
user238511
  • 891
  • 2
  • 10
  • 11
12
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
  • 223
  • 1
  • 3
  • 5
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
  • 4,943
  • 6
  • 35
  • 48
11
votes
3 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
  • 290
  • 1
  • 3
  • 12
9
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
  • 401
  • 3
  • 5
  • 8
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,441
  • 17
  • 80
  • 146
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
  • 1
  • 7
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…
Brain Bytes
  • 61
  • 1
  • 1
  • 3
6
votes
2 answers

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-compose file.
user289455
  • 887
  • 2
  • 9
  • 13
6
votes
2 answers

How can I fully use the chroot I create with debootstrap on a local machine?

I'm running on a Ubuntu 10.04, and installed an 8.04 version in a directory /stuff/hardy sudo debootstrap --variant buildd --arch i386 hardy /stuff/hardy http://archive.ubuntu.com/ubuntu What I want to do is to get a working environment isolated…
Tom
  • 253
  • 2
  • 9
1
2 3
10 11