Questions tagged [containers]

436 questions
6
votes
2 answers

What is the difference between containers and virtual machines?

I want to comprehend all that differ a container from a virtual machine. A filesystem with all operational system can be observed for both of these virtualization methods. But in a Docker container, e.g. centos 5.x, if I exec uname -a in container's…
6
votes
1 answer

How to monitor docker container restarting behavior?

currently I'm hosting several containers using Docker and realized that some containers seem to keep restarting by themself. When using the command, docker ps -a, I saw the column status is always like "Up 5 minutes" or "Up 2 hours" and in the…
LawrenceH
  • 161
  • 1
  • 1
  • 2
6
votes
3 answers

Copy lxd containers between hosts

I've installed lxd on two ubuntu hosts that can only communicate via an intermediate server (on which I don't have su privileges). I've created a container on my localhost and now wish to load the container on the remote server. I consulted the…
0_0
  • 343
  • 1
  • 3
  • 11
5
votes
3 answers

Mysql runs out of memory during backup dumps (Docker container)

We have a container running MariaDB, and a few other small containers on the host. The Mysql container was allocated 21G of memory (out of 32G total), as well as a few other parameters, with the following commands in the…
Hadrien
  • 51
  • 1
  • 2
5
votes
1 answer

Docker - Timezones in containers not same as on host

In all my running docker containers the containers system time is set to UTC whereas on my host (debian) its CEST. Why dont they sync automaticly? How do i make them set the right time when bringing them up? root@v2201510680628925:/home/jacob#…
haemse
  • 191
  • 1
  • 2
  • 9
5
votes
2 answers

What is the difference between creating a volume or a mount in docker containers?

Docker provides 2 ways to backup and sync container data on the local machine i.e. volume and mount. Both behave in the same way except for a few things I noticed: A volume always keeps data in /var/lib/docker/volumes, while mount points can be…
YATIN GUPTA
  • 203
  • 1
  • 2
  • 9
5
votes
1 answer

Running an Ansible command in multiple docker containers

I need to run a command against multiple running containers. For example, let's say my app needs to run a data structure update against a database after receiving code updates. To do this, we want to run docker build -t latest, then…
DMCoding
  • 492
  • 5
  • 11
5
votes
2 answers

Hyper-V Containers are going to allow running of Linux Containers?

I cannot find a definitive answer anywhere (lots of contradicting information and very general). With the new version of MS Windows Server 2016 it's going to be possible to run containers in two modes: Windows Container Hyper-V Container First one…
TimB
  • 193
  • 2
  • 10
5
votes
2 answers

lxd container: port forwarding like docker

Is there a way to do port-forwarding in lxd-containers like docker does? I heard some rumours that there is no easy way. According to the homepage of lxd this is their goal: Intuitive (simple, clear API and crisp command line experience) For me…
guettli
  • 3,591
  • 17
  • 72
  • 123
5
votes
1 answer

Docker container SSHOpen not staying up

I am trying to create an image which contains an openssh server and start it when invoking the run command. I have taken the following steps: docker pull ubuntu docker run -d -it ubuntu bash apt-get update apt-get install openssh-server…
Karl Morrison
  • 1,621
  • 4
  • 29
  • 43
5
votes
1 answer

Jenkins CI Master-Slave setup with docker for slave server

So I have setup up two Ubuntu AWS Instances (a small t2.medium and a big r3.large). The t2.medium has Jenkins CI installed on it and the r3.large has docker engine installed on it. The intention here is to have a Master (t2.medium) server and a…
Fadi
  • 170
  • 10
5
votes
2 answers

Is there any reason *not* to run HAProxy in a Docker container?

Will performance and/or stability suffer if I run HAProxy (or Nginx) in a container vs installing it directly on the host?
iZ.
  • 201
  • 3
  • 5
5
votes
1 answer

Docker image build hangs at "pacman -S ..."

I am trying to build a Docker image from the official Arch Linux image. These are the things I have done so far: I PULL-ed the official Arch Linux Image: docker pull base/archlinux I wrote this "Dockerfile": # Set base image FROM…
dlyk1988
  • 1,674
  • 4
  • 24
  • 36
5
votes
3 answers

Is there a technology similar to Docker Containers for Windows Server?

Docker Containers (which is basically application isolation, afaik) look handy but they are only for Linux. Even "Docker Container for Windows" basically just installs a Linux VM into VirtualBox on Windows. So is there such a thing as a Docker…
5
votes
3 answers

Transparent proxying a single docker container to another docker container

I have a pair of docker containers running on the host machine, these containers together makes my application fulfill. So for each iteration/instance of my application requires a pair of docker containers to run. So far I'm using the --link…
1 2
3
29 30