Questions tagged [docker]

Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications.

Docker

Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications. Consisting of Docker Engine, a portable, lightweight runtime and packaging tool, and Docker Hub, a cloud service for sharing applications and automating workflows, Docker enables apps to be quickly assembled from components and eliminates the friction between development, QA, and production environments. As a result, IT can ship faster and run the same app, unchanged, on laptops, data center VMs, and any cloud.

(Source: http://www.docker.com/whatisdocker/)

1085 questions
1068
votes
5 answers

How can I use docker without sudo?

On Docker's documentation pages, all example commands are shown without sudo, like this one: docker ps On Ubuntu, the binary is called docker.io. It also does not work without sudo: sudo docker.io ps How can I configure Docker so that I don't need…
Flimm
  • 37,637
  • 19
  • 85
  • 146
972
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,695
  • 10
  • 25
  • 35
264
votes
5 answers

Avoiding user interaction with tzdata when installing certbot in a docker container

I want to install certbot in a docker environment with an Ubuntu 16.04 image: For example: docker run -it ubuntu:16.04 /bin/bash When I'm inside the container, the most straightforward way to install certbot does not work as it requires user…
Philipp Claßen
  • 3,964
  • 6
  • 24
  • 30
187
votes
8 answers

How to completely uninstall docker

I followed the uninstall instructions here. Then I ran these commands: sudo apt-get purge docker-engine sudo apt-get autoremove --purge docker-engine rm -rf /var/lib/docker So after I did all this I ran this command to see if docker files are any…
Luke101
  • 1,973
  • 2
  • 8
  • 4
135
votes
9 answers

How Do I upgrade Docker

I type docker.io version, and get: Client version: 0.9.1 Go version (client): go1.2.1 Git commit (client): 3600720 Server version: 0.9.1 Git commit (server): 3600720 Go version (server): go1.2.1 Last stable version: 0.11.1, please update docker I…
Gerrat
  • 1,718
  • 2
  • 12
  • 14
130
votes
8 answers

"Package 'docker-ce' has no installation candidate" in 18.04

I'm following the official Docker installation guide for docker-ce on Ubuntu. When I get to sudo apt install docker-ce I get E: Package 'docker-ce' has no installation candidate: $ sudo apt-get update Hit:1 http://gb.archive.ubuntu.com/ubuntu bionic…
Robin Winslow
  • 2,476
  • 3
  • 18
  • 25
119
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
  • 1,917
  • 3
  • 18
  • 24
110
votes
8 answers

systemctl failed to connect to bus - docker ubuntu:16.04 container

I'm trying to use the systemctl command in a ubuntu:16.04 docker container. I'm running the following command... systemctl status ssh However I'm getting the error... Failed to connect to bus: No such file or directory Why is this not working? Is…
Duncan Gravill
  • 2,275
  • 4
  • 10
  • 9
107
votes
3 answers

netstat or alternative in docker ubuntu server 16.04 container

Was netstat removed in 16.04? Is there an alternative to netstat available in 16.04? Or how do I install netstat in 16.04? I am running an ubuntu:16.04 container in docker for Windows, it seems that netstat is no longer available... It is available…
Duncan Gravill
  • 2,275
  • 4
  • 10
  • 9
86
votes
9 answers

Uncomplicated Firewall (UFW) is not blocking anything when using Docker

This is my first time setting up an Ubuntu Server (14.04 LTS) and I am having trouble configuring the firewall (UFW). I only need ssh and http, so I am doing this: sudo ufw disable sudo ufw reset sudo ufw default deny incoming sudo ufw default…
ESala
  • 2,271
  • 2
  • 12
  • 12
83
votes
1 answer

docker warning config.json permission denied

I just installed docker and created a group and added my username to it to avoid using sudo every time. However when I do the test and run docker run hello-world it gives me following error: WARNING: Error loading config…
Trm
  • 965
  • 1
  • 6
  • 6
66
votes
7 answers

How do I install Docker on Ubuntu 16.04 LTS?

I would like to build and run Docker containers on Ubuntu 16.04 LTS. How do I install Docker?
Martin Thoma
  • 17,379
  • 23
  • 68
  • 93
60
votes
10 answers

How to install latest node inside a docker container

How do I install the latest node inside a docker ubuntu 15.10 container? apt-get install nodejs installs version 0.1 and no npm Thanks
Tomasz
  • 1,263
  • 1
  • 9
  • 9
57
votes
4 answers

How do I autostart docker container at system reboot?

As I hosted a WordPress site in docker containers and i want these containers to be started at boot time always, so need to done it manually.
nayan tiwari
  • 681
  • 1
  • 5
  • 4
49
votes
7 answers

What does this docker log entry mean?

Some minutes ago my computer crashed because apparently my hard drive was full. After booting in recovery mode I then found out that my syslog file in /var/log was 64GB large. I saved the end of the file on another partition and then deleted it.…
Philip Z.
  • 584
  • 1
  • 6
  • 17
1
2 3
72 73