Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [container]

Questions concerning container in Digital container format, programming, type theory, Operating system-level virtualization, Web container, etc.

0
votes
0answers
5 views

How can I run the sudo command in Python code under CentOS in Docker [migrated]

I am trying to access the docker image labels from Python as follows hostname = socket.gethostname() cmd = "sudo curl --unix-socket /var/run/docker.sock http:/containers/" + hostname + "/json" output ...
0
votes
0answers
34 views

Opendaylight Running Docker Container

I am running a container in Opendaylight using the command docker run -d -p 6633:6633 -p 8181:8181 -p 8101:8101 --name=opendaylight glefevre/opendaylight After running the command I get an error ...
0
votes
0answers
73 views

Docker container eat memory and has large block I/O

I try to use Docker and I have little problem. I don't understand why there is an increase in memory usage in my container. For example: I have container with RabbitMQ, but it's not used. When I ...
0
votes
1answer
75 views

machinectl not importing diskimage

I was playing with systemd-nspawn. So I created a qcow2 disk image of 2 GB and Installed minimal Debian using debootstrap. Then I tried to import it using machinectl but it fails every time giving ...
1
vote
0answers
93 views

Jenkins Docker container rights/owner needed to access the jenkins-home

So, I have followed this tutorial to migrate my already configured Jenkins inside a Docker container, this works quite well. At the end of the tutorial, I launched the command: sudo chmod -R 777 ~/...
0
votes
1answer
30 views

Docker within a docker

Is it okay to run a docker container inside another docker container? Please explain if there are any cons. Upto what depth is it advisable to go. I need to do this primarily for security concerns. ...
1
vote
2answers
551 views

rm -rf does not work: 'Device or resource busy'

I'm using OpenVZ to create containers and it creates a folder for each container to store its files. I stopped the creation of a container before it gets completed, so it created a folder for that ...
0
votes
0answers
303 views

Running pyshark (tshark) in a container: TShark not found

I'm trying to run pyshark (which uses tshark) inside a docker container, but without success so far. I already stumbled upon different problems using centos in a containter, in combination with ...
0
votes
0answers
14 views

What are my options for running a depricated library with dependencies

So my introduction to robotics class is using ROS indigo(apparently a lot of the existing codebase isn't easily ported to newer versions) which is running on a depricated version of ubuntu (teacher ...
0
votes
1answer
193 views

LXD Connect to a container on public ip

So I've setup a Ubuntu server 18.04.01 64bit can connect to it and all that with SSH. Installed LXD/LXC I also created a bridge br0 in netplan with DHCP at first an to connect to the containers with ...
0
votes
0answers
10 views

Apply a java function to a dockerized software

I want to let a java function able to apply some action to software dockerized in a docker container. How can i establish the needed connection between the java function and the container.
0
votes
1answer
133 views

Will NAT bridged LXC unprivileged containers routes the http calls to host http server via the lan network?

User A has a http server running on host Ubuntu machine with IP "HostIP" and port 8081. Now user A creates an unprivileged lxc container (container1) User A logs into lxc-attach -n container1. Now the ...
0
votes
1answer
377 views

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?
1
vote
0answers
183 views

In the 18.04/bionic docker container, how do I restore manpages?

When building a container based on the official 18.04/bionic docker image, It appears to be impossible to install manages. even if I explicitly install them, they do not appear to be on the file ...
1
vote
1answer
834 views

LXC + Ubuntu 18.04: “Unable to fetch GPG key from keyserver” when trying to create a new container

I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error: > lxc-create -n test -t download Setting up the GPG keyring ERROR: Unable ...
0
votes
1answer
189 views

Publicly Available Containers via Ubuntu 18.04 — help question

First off, let me start by saying I am no expert in server talk. I've been teaching myself as I go along, and I really only know entry level basics to server management. I am trying to consolidate ...
0
votes
0answers
64 views

Forward Incoming Traffic from Client on Host to Container

I use ubuntu 16.04 right now. I have an small office right now. In the past, the traffic like this: CLIENT --- SERVER --- ROUTER --- INTERNET I set up the network like this: I have an login page....
0
votes
0answers
63 views

Understanding systemd-cgls output

I'm trying to understand the systemd-cgls command. Couldn't find a detailrd document. I need to understand the output of this command in detail. The actual goal is to understand how a docker ...
1
vote
1answer
129 views

How do I add the “contains: …” data to an mp3 file?

I am trying to get gmediaserver (v0.13.0-8) to serve all of my mp3s. Right now it sees only a portion of them. I noticed that the "file" command produces different results for the working files than ...
2
votes
3answers
955 views

How can I install the Vyos software .iso inside an LXC container?

I have a problem with the installation of the Vyos software inside an LXC container. The .iso is vyos-1.1.8-amd64.iso.
1
vote
1answer
605 views

Connection refused error for kube-dns pod

I have configured kubernet v1.9.3 in my Ubuntu 16.04LTS system. Master node was successfully created with an exception of kube-dns pod getting a connection refused issue. I am getting the following ...
0
votes
0answers
130 views

Possibility to run isolated applications (think BSD jails) on Ubuntu Server

I am sick and tired of FreeNAS and want to move to Ubuntu Server. However, I really like jails and the ability to run applications isolated from oneanother. Is it possible to achieve this in Ubuntu ...
0
votes
0answers
62 views

Setup containers

I have ubuntu 17.10 and i'm trying to setup containers that people can ssh into from outside my network. I tried installing LXD containers and had a friend try to ssh into it but it says connection ...
4
votes
0answers
418 views

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 ...
1
vote
1answer
549 views

docker: Error: No such container: jmar71n/freepbx

how do I login to a container as root? thufir@dur:~$ thufir@dur:~$ sudo docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu latest ...
3
votes
1answer
9k views

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 ...
0
votes
1answer
338 views

Failed to fetch packages 404 Not Found for galera

I'm trying to create a galera docker image based on this dockerfile file from this link http://galeracluster.com/documentation-webpages/docker.html FROM ubuntu:14.04 MAINTAINER your name <your....
1
vote
0answers
612 views

systemctl commands won't work in an lxc container

I ssh into my container and I run this command: systemctl restart nginx.service And the terminal spits outs one of these bad boys: Failed to connect to bus: No such file or directory Anybody ...
2
votes
1answer
344 views

Centos7 LXC Shell Access on Ubuntu 17.04 host

I know this is probably google skills deficiency on my behalf but for the love of god I cant shell into a CentOS 7 container on an Ubuntu 17.04 host. user@ubuntu1704:~$ lxc shell centos7 user@...
1
vote
0answers
171 views

How to use gnome-keyring in lxc ubuntu container?

I have tried to start the installed gnome-keyring in a lxc Ubuntu 16.04 container by executing sudo gnome-keyring-daemon --start. However, I got the following errors. ** (gnome-keyring-daemon:21983): ...
1
vote
1answer
859 views

In LXD container, can I mount a disk image such that it is private to the container?

Inside of an LXD container, I have created a disk image file and finally figured out how to mount it. However, a side effect of mounting the image makes it visible and readable to the host operating ...
1
vote
0answers
49 views

Save Files Immediately

I have a Veracrypt container on a USB 2.0 drive (not full-disk encryption). When I copy a file from my hard-drive (where Ubuntu is installed) to inside the Veracrypt container, the standard copying ...
1
vote
0answers
197 views

Booting host system with systemd-nspawn

I've been messing around with systemd-nspawn and overlayfs and been having a lot of fun. I successfully setup a few containers to play with. I would like to boot a copy of my host system (Ubuntu 17....
1
vote
1answer
499 views

Can an LXD client run a desktop environment?

The examples given for LXD [1] [2] centre around terminal-based server use-cases. Can an LXD client run a graphical desktop environment in the same way as, for example, GNOME Boxes or VirtualBox?
0
votes
2answers
4k views

how do I change default MTU from 1500 to 9000 for lxdbr0 for containers created using LXD?

I'm running linux containers created by LXD on ubuntu 14.04.05 . I have a lxdbr0 interface setup , but its default MTU is 1500 , how do I update it ? I tried the following command, but it doesnt work. ...
1
vote
1answer
420 views

How to add description to lxd container?

lxc list gives a list of containers. When there are a lot of them it is hard to remember what are they for. Is there any solution to add description to this list ? eg. "this machine is for apache and ...
0
votes
1answer
107 views

Does rkt work on 32-bit systems?

I´ve learned about rkt on coreos.com here. I am very excited about rkt and would like to make use of it. rtk is supposed to work similarly to docker (virtualisation using containers) However I´m ...
1
vote
2answers
2k views

USB passthrough for LXD container on Ubuntu 16.04

I need to expose my USB interface to my LXD container and I'm using a Ubuntu 16.04 machine. Running "lsusb", I can see same the interfaces both on my host and container. Inside my container I'm using ...
1
vote
1answer
4k views

Add block device to LXD containder

I want to use fake block device inside my container. I made loop devices and added disk to a container, but I do not see it /dev/ directory listing. # truncate -s 10G xfs.img # mkfs.xfs xfs.img # ...
2
votes
1answer
475 views

LXD with no internet

Is there a way to create and launch a LXD container using a local image rather than requiring an internet connection? All the documentation and how-tos I've been able to find are based on having an ...
3
votes
0answers
101 views

Can I deploy multiple controllers in LXD on a single host?

I wondering if there are possibilities to deploy 2 charms in 2 lxd containers on 2 different lxd controllers bootstrapped in the same localhost pc. I know this procedure could be useless but i want to ...
2
votes
1answer
6k views

Cannot install docker-engine on Ubuntu LTS 16.04 minimal in LX branded zone on OmniOS

I followed the guide on the Docker site to install the docker-engine on my VPS which is running in a LX branded zone on OmniOS. Unfortunately, I got an error during the installation which is probably ...
4
votes
1answer
2k views

lxc Container does not start

I am trying to run an lxc container on Ubuntu 16.10 with the following configurations: lxc.utsname = cont lxc.network.type = veth lxc.network.flags = up lxc.network.link = bridge lxc.network.ipv4 = ...
1
vote
1answer
222 views

Do containers use same kernel?

I wanted to know if all containers running on a particular Linux machine use same underlying host kernel. I read yes, they do use same underlying host's kernel and hence are light-weight and very fast....
0
votes
1answer
177 views

How to update a debootstrap machine?

I have several machines (Ubuntu 16.04) created via debootstrap which now cannot start anymore due to systemd changes (I start them via systemd-nspawn). Efforts to fix this are ongoing on the host ...
0
votes
0answers
2k views

I think I messed with my LXD setup. How to repair?

I'm running Ubuntu 14.04 and I've been using LXD for some time with no problem. I think I broke something and LXD stopped working. I tried to "repair" it and I think I made it worse. First I deleted ...
2
votes
1answer
1k views

sudo: main: unable to allocate memory (Inside of Linux Container)

I am trying to build a 32 bit version of Wine in a Linux container. When I start the container, attach, and login, and enter the command sudo apt-get update I get the error sudo: main: unable to ...
2
votes
2answers
2k views

Errors installing php7.0-fpm on Ubuntu 16.04 running in a container

On attempting to install php7.0-fpm # apt-get install php7.0-fpm I'm getting the following error (copied from /var/log/apt/term.log): Preparing to unpack .../php7.0-fpm_7.0.8-0ubuntu0.16.04.2_amd64....
6
votes
2answers
9k views

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 ...
0
votes
1answer
274 views

routing between LXC containers in deferent subnets

I have 2 containers in deferent subnets, one 10.1.1.1/24 and 10.1.2.1/24. I want to connect them together, how can i do it ?