Questions tagged [lxc-docker]

18 questions
37
votes
8 answers

How to install docker specific version

How to install specific version of Docker(like 1.3.2)? I am unable to find any documentation in docker official docs. Referring this link for Ubuntu. Following instructions install docker version 1.0.1: $ sudo apt-get update $ sudo apt-get install…
Dhanu Gurung
  • 8,480
  • 10
  • 47
  • 60
4
votes
1 answer

Docker container - How to set GID of socket file to groupID 130?

This is docker in docker scenario. Below is the corresponding code in Dockerfile that has docker client installed: FROM jenkins/jenkins:2.190.2 ENV DEBIAN_FRONTEND=noninteractive # Official Jenkins image does not include sudo, change to root…
overexchange
  • 15,768
  • 30
  • 152
  • 347
4
votes
3 answers

I can't get env var in the Docker container

I've ran my Docker container using this command: docker run --name test1 -d -e FLAG='***' rastasheep/ubuntu-sshd Now, when I connect to it via SSH, I can't get my env there via printenv FLAG. How can I fix this? When running with -it and sh, I can…
Dmitry Sharshakov
  • 678
  • 1
  • 6
  • 7
4
votes
1 answer

can i create a LXC image from my own custom OS?

Am new to lxc. I want to create my own lxc containers from existing OSs(my own unix kernel compiled in different architecture). I am trying to use "lxc-create". Can anyone suggest me how to create my own containers and is it possible to create one…
4
votes
1 answer

Running docker Ubuntu image on Debian environment

Just started using Docker and have some questions regarding linux containers. How can I run Ubuntu images on a Debian host? Or it is just a name of image called 'Ubuntu' that actually use Debian environment? # cat /proc/version Linux version…
dima.h
  • 860
  • 2
  • 10
  • 14
2
votes
1 answer

lxc-start: utils.c: safe_mount: 1746 No such file or directory - Failed to mount /lib64 onto /usr/lib/i386-linux-gnu/lxc/lib64

I was trying to run cross-compiled lxc image on another machine as followings: I created an lxc image on a ubuntu 14.04 via command: lxc-create -t /usr/share/lxc/templates/lxc-busybox -n customBusyBox I checked it that the created image…
user2181750
  • 241
  • 5
  • 15
2
votes
1 answer

fedora 24 run docker 32-bit image

The host is Fedora 24 i686 version, kernel version is 4.6.3-300.fc24.i686. Also installed docker. When following the fedora getting started with docker wiki the docker run command failed with errors: $ sudo docker run -i -t fedora /bin/bash Unable…
minghua
  • 5,981
  • 6
  • 45
  • 71
2
votes
2 answers

Using libcontainer on LXC

I'm trying to run Docker (1.9) on a lxc container. Docker works fine if I use lxc exec driver but fails with libcontainer. So my questions are: Is it possible to use libcontainer on lxc? If not, why is it so? I vaguely know it probably doesn't…
kimh
  • 719
  • 2
  • 9
  • 15
2
votes
1 answer

Docker container can't reach another container using hostname

I have 2 containers: docker run -d -p 9000:9000 --name="my-php" php-fpm:5.4 docker run -d --name="nginx" -p 80:80 -link my-php:web nginx both are running really fine. Inside the nginx container I can reach the app using curl http://myapp.dev and…
globo
  • 21
  • 3
1
vote
0 answers

cAdvisor is failing to collect the data for processes running inside the LXC container

I am using the cadvisor to collect the container health data.Here, I am using the below command to run the cadvisor: sudo docker run --volume=/:/rootfs:ro --volume=/var/run:/var/run:ro --volume=/sys:/sys:ro…
siddharthav
  • 41
  • 1
  • 8
1
vote
1 answer

Making use of docker for development: a use case

my question is little vague but I tried looking for the answer here and there but could not understand if I can leverage docker for my work. My requirements I usually try different versions of java, python and other software like different versions…
rain
  • 479
  • 2
  • 6
  • 20
0
votes
0 answers

Docker / lxc can't launch a container

I'm trying out Docker for the very first time tonight! Running Ubuntu 22.04, cli-only. Updated & upgraded everything before & during this process, and it's all on a new account on a new machine. I've been following the official instructions, but I…
Ky -
  • 30,724
  • 51
  • 192
  • 308
0
votes
0 answers

LXC, Ubuntu Container - Having problems with a package while installing libraries

I tried installing libraries for a Unix benchmark to test my ubuntu LXC container when i get this return at the end. Command: ubuntu@BenchLXC2:~$ sudo apt-get install libx11-dev libgl1-mesa-dev libxext-dev perl perl-modules make git grc Result (at…
0
votes
1 answer

How to give docker exclusive access to cpus?

Is there any way I can give a docker instance exclusive access to some of the cpus?
smz
  • 391
  • 1
  • 3
  • 11
0
votes
1 answer

lxc-create stuck at connecting to archive.ubuntu.com

I am new to LXC. I tried to create ubuntu container using the command lxc-create -n onos -t ubuntu The installation ran for some time and got stuck with below message Installing Update Connecting to archive.ubuntu.com I am behind corporate proxy.…
1
2