Questions tagged [docker]

Docker is a container engine for developing, managing, and running OCI containers for applications. Use this tag for questions on how to build and run container images, as well as how to properly configure Docker containers.

Docker provides a suite of tools to build, ship, and run distributed applications in containers, using the default Linux container runtime (containerd).

The base for a Docker container is an image with a complete filesystem for the target application, including the required environment, settings etc.

Docker images can be customized or build from scratch using a dockerfile. When the image is run with Docker, it is contained in its own runtime environment in a container. During the lifecycle of the container, any changes to the images are written as an overlay filesystem (overlayfs).

Since images are static, and containers use the kernel of the host system, Docker containers are extremely efficient, and it only takes a few seconds to start a new instance of Ubuntu or any other distribution with Docker.

There is a huge number of ready-to-use containers available in the Docker HUB.

Official Docker documentation.

1287 questions
33
votes
5 answers

How to configure locales to Unicode in a Docker Ubuntu 14.04 container?

I installed a Ubuntu Trusty container using Docker, and when I connect to it, I can see that the locale is set to the bare minimum: sudo docker run -i -t <id> /bin/bash root@<id>:/# locale LANG= LANGUAGE= LC_CTYPE="POSIX" LC_NUMERIC="POSIX"…
Pierre
  • 1,140
  • 2
  • 12
  • 17
32
votes
9 answers

How to install Docker on Ubuntu 17.04

I've installed Ubuntu 17.04 (VirtualBox). But since I have Ubuntu 17.04, it seems like docker is not yet available for Ubuntu 17.04. Is there any workaround to install Docker on Ubuntu 17.04? This is my commande line history: 2 curl -L…
dmx
  • 2,057
32
votes
5 answers

problem with docker

I am trying to learn about "Docker" in ubuntu 15.04. When I give any command using docker like "docker run image", it get the following error: FATA[0000] Post http:///var/run/docker.sock/v1.17/containers/create: dial unix /var/run/docker.sock: no…
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,641
29
votes
4 answers

Ubuntu on Windows 10: Docker vs WSL

I understand that it is currently possible to run Ubuntu on Windows 10 in two different ways: Using the Windows Subsystem for Linux (WSL). Installing docker for Windows 10, and use a container with Ubuntu. However, I could not find an easy to…
alvgom
  • 405
26
votes
8 answers

Official Docker image for Ubuntu Server?

All I could find is an official Docker image for Ubuntu Desktop on Docker Hub. Isn't there one for Ubuntu Server? Does that mean, I'd have to create my own base image using scratch ?
its_me
  • 1,958
25
votes
1 answer

How to install 'wget' on Ubuntu 14.04?

I read the documentation of wget but did not understand how to download the package.Is there any way (command) to download the package using the terminal on Ubuntu inside a Docker container?
Boyka
  • 949
  • 2
  • 9
  • 16
25
votes
2 answers

Installing Docker through apt vs snap?

I'm starting to build my own media server which will use Docker for different packages. Mainly Plex, Radarr, and so on. Although I've dabbled a bit with Linux before, I was never aware of what snap is, always used apt . Now that I started reading on…
krusion
  • 351
  • 1
  • 3
  • 4
24
votes
1 answer

Docker-CE or docker.io package

In my laptop I work mostly with LXD to have containers for development and manage LXD containers in production (integrated with Ansible). I have one requirement to use docker/docker-compose for deployment. I know that I can install docker.io package…
23
votes
3 answers

How to run docker-compose at bootup?

This is on an Ubuntu 14.04 LTS VM running Docker and I suspect respawn is the cause of my problem but not sure of the ideal solution. Current upstart script ( cat /etc/init/dockersuitecrm.conf ) description "Start docker containers" author "Batman"…
22
votes
5 answers

How to run a docker-compose as a systemd service?

I found this question , but that one uses cron - I'd like to use a systemd service instead. My docker-compose.yml is in /home/me , and I run it with sudo docker compose up (and just keep it running in the background with tmux ), and stop it with…
cocomac
  • 4,126
22
votes
1 answer

Docker Compose can't execute: "Command 'docker-compose' not found"

I have installed the latest Docker Compose as a non-sudo user on Ubuntu Server 20.04 along with docker-rootless daemon in the non-sudo user's directory, using the following: mkdir -p ~/.docker/cli-plugins/ curl -SL…
nightwatch
  • 805
  • 5
  • 25
  • 53
22
votes
5 answers

Docker containers running, but not showing up in docker ps

I am running Ubuntu Server 20.04.2, fresh install. I have an unbound container up and running, also a pihole container. After a reboot of the host server, Docker doesn't show me any containers at all. And no docker images either. But the unbound and…
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 you…
user1069309
22
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 the…
onknows
  • 410
1 2
3
…
85 86