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 [docker]

Docker is an application to create containers for applications.

0
votes
0answers
11 views

Can't find docker-ce in repository

I installed all required dependencies & added docker repository by command: sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ $...
0
votes
1answer
25 views

Docker containers can't communicate on the outside network

We have a Docker host (A virtual machine) hosted on VMware. This docker host has two network interfaces. ens160 and ens192 ens192 is configured with a normal IP address ens160 is configured without ...
0
votes
0answers
25 views

GitLab Runner: no basic auth credentials even though DOCKER_AUTH_CONFIG is set

I am trying to set up a gitlab runner service using a private Docker registry. According to the documentation it is sufficient to set the DOCKER_AUTH_CONFIG environment variable and populate it with ...
0
votes
0answers
24 views

Source configs debian docker

I am trying to create an NVM base dockerfile from a debian base and I am unable to make node available on non-interactive shells (i.e no entrypoint with just a command) Here is my Dockerfile: ARG ...
0
votes
1answer
28 views

Hide client hostname (Docker container ID) in title bar with remote X server connection

When running a GUI app in a Docker container I'm mapping the X11 socket to give the application access to the X server on the host like so: docker run -v /tmp/.X11-unix:/tmp/.X11-unix my_image The ...
0
votes
1answer
19 views

Bash script to start Docker containers

This script works: #!/bin/bash for i in {1..10} do echo “yes $i” done But when attempting to start several Docker containers it only starts the first container and exits: docker_run.sh #!/bin/...
1
vote
1answer
26 views

sudo Replace Current Process?

I have an interesting use case. I'm running systemd in a container to simulate a VM for testing purposes. I'm able to run systemd just fine, but I need my default user to not be root so that anything ...
1
vote
1answer
39 views

No root permission in a docker container image

I test a Docker container (created from Nvidia CUDA image) started with the command: docker run -i -t xxxxxx /bin/bash I can see the root prompt, but still don't have privileges for some operations; ...
0
votes
0answers
9 views

Why can't I see my mobile device on DevTools while running adb on a Docker container?

I'm trying to debug an app (or simply inspect pages in the Chrome browser) on my mobile device and I'm trying to use docker containers for housing adb. Everything goes well while starting up the adb ...
0
votes
1answer
17 views

How to know the Bluetooth MAC address in Alpine Linux

I am deploying a docker in Raspberry Pi 3. Inside docker I need to know the MAC of Bluetooth device. Normally I would find that using hciconfig | grep "BD Address" | awk '{ print $3}' hciconfig ...
1
vote
0answers
24 views

How to specify user & group of volume via docker-compose?

I am launching a docker environment by means of docker-compose. This provisions both a mysql and nginx process. The latter mounts a path that contains the folder that will be served. The issue is ...
0
votes
1answer
17 views

How to retrieve a file that has been added then removed in a Docker image?

Assume you have a working directory like this: $ tree . . ├── Dockerfile └── file.txt And the Dockerfile contains: FROM debian:9 WORKDIR /usr/src/foo COPY file.txt . RUN echo Some random command ...
-1
votes
0answers
17 views

AWS ECS - Stop oldest task/container

I have an ECS Cluster on AWS. On the scaling configuration I need to stop the oldest task when the scaling down step is executed. Something like the Termination Policies of Auto Scaling Groups on EC2. ...
0
votes
0answers
27 views

Error while dialing dial unix /run/containerd/containerd.sock: connect: connection refused\“” module=libcontainerd namespace=plugins.moby`

Can someone explain what the following error in/var/log/syslog means? I don't know if I picked the relevant part, there is a lot more information in the log. Feb 4 10:57:51 chriad-VirtualBox dockerd[...
0
votes
1answer
39 views

Difference between running a process as root and running process with all the linux capabilities

I have a docker container which runs perfectly fine in a kubernetes pod when privileged:true is set in the specification. But when I run the same docker container, by giving all the linux capabilities,...
0
votes
0answers
19 views

How come this service is not running? Why is it exiting? (Docker CentOS container)

I am trying to install Tenable Security Center in a CentOS container upon a base install of Debian. Inside my container, the following returns when inspecting SecurityCenter service (suppose to ...
-3
votes
0answers
51 views

Does Docker's virtualization belong to the kind of virtualization by virtual appliance?

From Modern Operating Systems 7.8 VIRTUAL APPLIANCES Virtual machines offer an interesting solution to a problem that has long plagued users, especially users of open source ...
-1
votes
2answers
49 views

When choosing a Docker container image file for my Ubuntu, what do I need to match between them?

When choosing a Docker container image file for my Ubuntu, so that it can run on my Ubuntu, what do I need to match between them? Do I need to choose image files for Linux but not for Unix (MacOS, ...
0
votes
0answers
20 views

Getting permission error with laradock on ubuntu 18.04 - works fine on 16.04

Info Docker version: Docker version 17.12.1-ce System info disto/version: Ubuntu 18.04 LTS Issue: Apache2 container builds and runs fine but getting error ERR_CONNECTION_RESET in the browser when ...
0
votes
1answer
54 views

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

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

How to replace binary file in /bin inside a Linux container

I want to make some weird container, one of my tasks were to replace the uname binary. I coded it: #include <stdio.h> int main() { printf("This is a fake uname\n"); return 0; } ...
1
vote
1answer
79 views

How can I install Docker in a Debian Chroot?

I have a Raspberry Pi 2 running Raspian (Debian 9 Stretch Arm). I want to create a Chroot environment of pure Debian Stretch, and install Docker there. I follow all the proper instructions from here: ...
1
vote
0answers
24 views

How to get the source code used to build the packages of the base alpine linux docker image?

Why I want to know this: Currently I use apt-get source to get the source code for all packages within my Debian based docker images to comply with the GPL when I distribute the docker images. Now ...
0
votes
0answers
28 views

IPTables blocking docker container internet access on CentOS

I have two (virtual) servers running CentOS with Docker installed. We have installed IPTables and everything works as expected. I then adapt the service file: /usr/lib/systemd/system/docker....
3
votes
1answer
22 views

How to make docker.service wait for cni0.netdev bridge during systemd boot?

I'm running Ubuntu 18.04.1 LTS I have created a cni0.netdev and cni0.network file in /etc/systemd/network to create a virtual bridge to use for a local Kubernetes cluster/node. I have enabled ...
-2
votes
1answer
40 views

Debian 7 locales not found

I need to install en_US and it_IT locales. I work with Docker containers but I think is indipendent between Debian and container based on Debian. I execute these commands: root@debian:/# locale LANG=...
7
votes
1answer
124 views

Allow certain risky behaviour of a single program in a safe way in SELinux

I have a program running inside a Docker container that loads an .so file which alters the behaviour of the program through hooking and memory manipulation. This behaviour is blocked by SELinux with ...
0
votes
1answer
37 views

How to avoid zombie process while working with named pipe?

We normally do the writing job to a FIFO file in background using a control operator &. Something like below. if [ ! -p "/tmp/mysqld.init" ]; then mkfifo /tmp/mysqld.init fi echo "something"...
0
votes
1answer
51 views

Ports not really open after firewalld command

OS: CentOS 7 This is a question that is bordering on two issues. I have a docker machine running where I recently installed the PLEX container from linuxserver/plex. The current problem is that I ...
0
votes
0answers
79 views

I tried to use wireguard docker image,but I failed

I deleted all the datas in VPS,and reinstall a new Centos 7 and I downloaded the lastest stable kernel source code 4.20 and extracted it to the source directory which is /usr/src,then I builded it.the ...
1
vote
0answers
15 views

Access usb wireless adapter from network namespace

I have a wireless usb adapter and I would like my docker container to use just this for the internet (not the computers own wireless adapter). I think I can do this if I know how to access the adapter ...
0
votes
1answer
27 views

Control docker daemon

I had observe on the same OS (ubuntu 16.04), different machines, that if I run sudo systemctl status docker, then I have different results concerning the location of docker.service, more exactly on ...
0
votes
0answers
44 views

Print percentage (%) of files used by a command

I'm building docker images to be used in CI/CD pipelines by other developers. After the image build is complete, I run a few commands to do some test coverage. I'm curious if there's a Linux command ...
1
vote
1answer
57 views

How does glibc within a Docker image survive different container host kernels?

Docker containers share the kernel of the host, but they do include their own applications and libraries. Is it correct that glibc is one of these libraries? If so, how come there is no problem of ...
0
votes
0answers
63 views

scp: Failed to open file /my/Path/test.txt on Windows Server

I have been trying to copy a file from a remote Windows Server to my local docker image from my local docker image and I keep getting the error 'scp:Failed to open File /my/Path/test.txt'.My ...
1
vote
0answers
34 views

CentOs-7 environment --How to setup the public IP(ex:124.108.103.103) and specific port (ex:8080~8090)on the Docker container

Is there any way to assign the public IP and specific port to the container. So the container has the public IP and Port. Some applications or other servers can access the container under the specific ...
0
votes
1answer
62 views

Unit docker.socket not found

Cannot run docker daemon, sudo systemctl status docker.socket returns Loaded: Not found (Reason: No such file or directory). I had modified docker.service, sudo sytemctl edit docker.service and tried ...
2
votes
0answers
48 views

systemd-nspawn: how to allow access to all devices?

I'm trying to create a rough equivalent of Docker's --privileged in a systemd container, but I've got no idea how to allow the container to access all of the devices available on the host (without ...
2
votes
2answers
66 views

Convert docker container dates to milliseconds since epoch

I'm trying to find long-running docker containers. First running docker ps --format '{{.RunningFor}}' returns something like About a minute ago 11 minutes ago which is completely useless for ...
0
votes
0answers
15 views

docker unable to run golang image

I have created an image in windows 10 git bash. After so many turn around's I finally able to create an image in windows using docker. But the problem is that when I try to run the container it ...
0
votes
0answers
44 views

NixOS + docker nginx + dnsmasq for local somethingsomething.dev domains

I have been configuring NixOS as a dev machine lately (and so far I really love it). I was planning of using a nginx image as reverse proxy to route all *.dev requests to running docker images. This ...
0
votes
0answers
31 views

What is the deference between `arch` and `/etc/yum/vars/arch` at docker container?

I use docker container on CentOS7 x86_64. Docker container depends on the host system. bash $ arch x86_64 The arch command shows the above host arch in the container. I want to use the container ...
3
votes
1answer
78 views

CentOS environment: How to delete docker repository from docker hub, using linux command line

I would like to delete a docker repository from dockerhub, using the command line. I am using CentOS. Like the below is used in GUI Docker hub website to delete it (the following picture shows step)
2
votes
0answers
103 views

How to load kernel modules for docker container without privileged mode?

I would like to use some functions like fuse (sshfs) in a docker container, which is provided by kernel. I can load the modules easily in docker containers with privileged mode. However, if I would ...
1
vote
1answer
95 views

Multiple commands inside a docker container bash script

I want to excute some commands inside a container but the second one doesn't want to be executed inside the container so grep can't find the file in home directory of my container. Does someone has ...
0
votes
0answers
29 views

iptables using Plesk for Docker

I just wanted to use Plesk's Docker management extension and use it together with a nginx reverse proxy for HTTPS. Unfortunately, Plesk's firewall has a bug which makes it unable to block remote ...
0
votes
1answer
161 views

Unable to start ssh service on Centos Docker image

I downloaded the centos 7 docker image from docker hub. When I try to enable sshd on the server, it does not allow me to enable ssh service. Below are the steps to replicate my issue: docker pull ...
0
votes
1answer
23 views

How to prevent docker Image from upgrading the yum package

I want to install a specific version of openldap which comes with centos 7.4.1708 centos vault openldap-2.4.44-5.el7.i686 openldap-2.4.44-5.el7.x86_64 openldap-clients-2.4.44-5.el7.x86_64 Below ...
0
votes
1answer
63 views

Awk doesn't exit despite “exit 0” command

I have the following command: sudo docker logs -f <id> | awk '/Listening on / {print $3; exit 0;}' From what I understand, awk should find the first line that matches the pattern, print the ...
0
votes
0answers
38 views

line continuation when using docker exec bash with double quotes

I want to be able to pass variables inside the `docker exec bash -c " " which also include line continuation character. Consider below command which works with line continuation but without variables ...