Stack Exchange Network

Stack Exchange network consists of 174 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
35 views

Why my other Bash instances died when I killed only one

so take this as an example: $ docker run -it --rm ubuntu root@7ca4573c1a7a:/# bash root@7ca4573c1a7a:/# bash root@7ca4573c1a7a:/# ps axuf USER PID %CPU %MEM VSZ RSS TTY STAT START ...
1
vote
0answers
9 views

manage docker containers in cockpit without root

I have a docker server (CentOS 7) that has cockpit installed and wish to use cockpit to manage docker containers. My main account on the server is able to use sudo elevate permissions on the system. ...
0
votes
1answer
9 views

Export ArangoDB values to bash script

I have a bash script that needs the count of records/documents that exist for a given arango collection. This seemed easy enough, I used the following arangosh call: records=$(docker exec -it arango ...
0
votes
1answer
22 views

Is it possible have a deterministic run of linux process inside docker?

Imagine that I have a linux program that does some network IO. Execution of the program is not deterministic: it gonna produce different results depending on how it's threads are scheduled, what ...
0
votes
1answer
27 views

variable containing output of docker exec command malaligned

I am trying to run bash inside docker container using docker exec bash -c and store its output on the host(not the container) by echo'ing something which will be used in conditional statement. I could ...
0
votes
1answer
26 views

Downloaded newer image - docker: Error response from daemon: OCI runtime create failed: container_linux.go:348:

I want to download the busybox image and I get it but despite it I have the following error: λ bgarcial [~] → sudo docker run busybox:1.29 "hello world" Unable to find image 'busybox:1.29' locally 1....
-2
votes
1answer
40 views

how to do update a docker container?

I have installed docker and have a container in it. $ docker version Client: Version: 18.06.1-ce API version: 1.38 Go version: go1.10.3 Git commit: e68fc7a Built: ...
0
votes
0answers
10 views

ownCloud with mariadb under docker-not avalable connection

I tried to use official documentation https://github.com/owncloud-docker/serverwith docker-compose. My .env file: OWNCLOUD_VERSION=10.0 OWNCLOUD_DOMAIN=localhost ADMIN_USERNAME=admin ADMIN_PASSWORD=...
0
votes
1answer
41 views

Can we execute the pro-c file which is compiled on UNIX on Debian 9? [closed]

I have a pro-c file which is compiled on UNIX. The script logins to oracle DB and interacts with DB and update some values there in some tables. We are migrating from UNIX to Openshift Container ...
0
votes
1answer
23 views

Run docker-compose after reboot on RHEL 7

After installing Docker CE and Docker Compose on RHEL 7, I get an error trying to use it: $ docker-compose --version docker-compose: error while loading shared libraries: libz.so.1: failed to map ...
0
votes
2answers
48 views

How to namespace the ps command?

I am trying to understand how linux containers work internally. One of the things that I have learned is that you can containerize a shell by passing in special flags to it. Out of the flags one is ...
0
votes
1answer
15 views

Making DNS permanent in Docker's containers [closed]

I have container1, I have edited the /etc/resolv.conf and put nameserver 8.8.8.8 to ping google.com. It works fine. But I need to make this permanent, when I restart my docker's container using sudo ...
0
votes
1answer
21 views

Is it possible to run more than one node on a physical host without full-fat VM?

I am planning on running Docker and Swarms on some rPi 3B+'s. My first goal is to test the fault tolerance abilities of RAFT consensus across at least 3 machines so I can simulate failure of a node. ...
2
votes
1answer
19 views

How can I inspect a docker container's filesystem that cannot run?

I recently was trying to inspect how this container works, and so I wanted to do what I'd typically do for a running container, mainly: $ docker exec -it <container SHA> /bin/bash However in ...
0
votes
1answer
30 views

Run docker container on Linux VM which is running on Linux host system

My google queries are getting weird because of the architecture: I am running linux as host and an arch VM as guest. The arch VM does not have a GUI at all, simply the terminal. I mainly access the VM ...
3
votes
1answer
32 views

docker0 network interface is screwing up my network

I've installed docker on Ubuntu 16. Now I can no more connect to my wired network : ubuntu is using docker0 ethernet interface to connect to the network (the wifi interface still works) To resolve ...
0
votes
0answers
29 views

Why my entrypoint script doesn't take effect of umask value while starting?

After creating container umask value is correct i.e 027 but while container is starting inside entrypoint it displays the 002 which was set inside /etc/profile Dockerfle FROM alpine:3.8 ENV ENV='/...
0
votes
0answers
20 views

How to configure CUPS software in a Docker image Debian 9?

I'm trying to configure CUPS software for printing in a docker image which is based on httpd:2.4. I have successfully installed and copied the script containing commands for adding each printer ...
0
votes
0answers
22 views

How to redirect display from docker to my fedora 28 machine

I was provided a docker container which I successfully deploy in my mahcine. However, when I tried to open eclipse inside the container I cannot find a way to redirect the screen to my fedora 28. ...
0
votes
0answers
42 views

“docker run hello-world” not working when run as root

I configured docker in Windows 10 Home to connect with docker in WSL (Windows Subsystem in Linux). When I run sudo docker run hello-world in WSL, it gets the error message docker: Cannot connect to ...
0
votes
0answers
13 views

Where to set Umask value in php-fpm Alpine based container

I have installed php7-fpm and php-7 using apk add on my Alpine container. I tried following this SO https://serverfault.com/questions/582371/how-to-set-umask-for-php-fpm-in-fedora/582380#582380 . But ...
1
vote
2answers
144 views

read-verification alternative (two prompts and if-then comparison alternative)

I am trying to create a small script for creating simple, all-default Apache virtual host files (it should be used any time I establish a new web application). This script prompts me for the domain....
1
vote
1answer
31 views

Every docker image I make cannot bind to any port

So I am trying to make an image, I have tried multiple ports, ports less than 1024 and ports greater, but all get the following error: 2018/11/21 15:34:34 listen tcp :9000: socket: permission ...
0
votes
0answers
94 views

Why does docker-ce-3:18.09 installation on SLES 12 throw “systemd-units needed” message?

My goal is to install Docker 18.09 on SUSE Linux Enterprise Server 12 (SLES 12 SP3). I can successfully download and install docker version 17.09.1_ce-98.18.1 using zypper from repositories available ...
0
votes
1answer
210 views

“VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path”

I'm getting the error: Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path" When trying to create a vm in terminal. I've uninstalled ...
0
votes
1answer
26 views

Fedora rpm vs Redhat rpm?

We are performing a docker installation on one of our VMS. We have doubts whether Fedora rpms specifically in EPEL fedora are similar to those for RedHat 7.5. Is there any difference (rpm) docker ...
3
votes
2answers
22 views

How to wait for docker in systemd user mod?

I'm launching Docker containers (probably with https://github.com/ibuildthecloud/systemd-docker , which I just discovered) from "systemd --user" unit files. I want them to launch on start. The ...
0
votes
1answer
45 views

Docker SELinux Error on mounting NFS volume to container

I've created a NFS volume with docker volume create --driver local --opt type=nfs --opt o=addr=preisschild-server-2.lan,rw --opt device=:/mnt/tank/MariaDB MariaDBData which seems to work, but when ...
1
vote
1answer
66 views

When I see a bunch of `write: broken pipe ` errors for a process what does it mean ?

When I see a bunch of write: broken pipe errors for a process what does it mean ? level=error msg="attach: stdout: write unix /var/run/docker.sock->@: write: broken pipe" Does this mean this ...
0
votes
0answers
24 views

Bash load virtualenv on launch as non-root user in docker

I try to make a custom python docker image that spawns a bash session with virtualenv pre-loaded. In order to achieve that I created a entrypoint.sh script: #!/bin/sh USER_ID=$(id -u developer) ...
0
votes
2answers
53 views

Docker CE not registered as a service on Debian 9

I've installed the Docker Community Edition according to the resource: https://linuxize.com/post/how-to-install-and-use-docker-on-debian-9/ However, when I reach step 5 (systemctl status docker) I ...
-3
votes
1answer
69 views

Docker restarts network on Linux [closed]

I have a problem regarding network when using docker on Arch Linux. When I attempt to connect on any website, or refresh that, download bigger file - sometimes I get Network Change error in Chrome/...
0
votes
1answer
53 views

X11 Error When Run as a Docker Container

I'm trying to run an application from a Docker container which is supposed to open a GUI widow (a video stream in my case). The Docker container is run on a Raspberry Pi and I SSH into the Pi from my ...
0
votes
1answer
41 views

Docker container is killed during performance tests

I need to understand why docker container is being killed during processing. Short background: we're running performance tests in RH machine. (Machine has 64GB RAM, 16 CPU) after 20 hours of run or ...
2
votes
1answer
82 views

Docker – debian:stretch-slim – install man and view manpages

When using the debian:stretch Docker image, the /usr/share/man/ directory already contains many manpages, and man can be easily installed to view them: $ apt-get update $ apt-get install man $ man ls ...
0
votes
0answers
56 views

RHEL docker volume NFS mount failed

I'm currently trying to mount a NFS directory directly in Docker but it fails with Error response from daemon: error while mounting volume '/var/lib/docker/volumes/mynfs/_data': error while mounting ...
0
votes
0answers
27 views

Silent failure adding user to group

As part of an environment setup script we have the following snippet which installs docker: if [ ! "$(docker -v)" ]; then infoMessage "Setting up Docker..." echo "Updating system packages.." ...
1
vote
1answer
33 views

Why does “export” not work in docker exec?

I have exported variables in /etc/profile.d/custom.sh and ~/.bashrc. They are available in the environment when I run docker exec -i CONT_ID /bin/bash. But when I run another command, they are not ...
0
votes
0answers
55 views

apk add command error: returned a non-zero code: 1

I want to install a Java application by Docker Maven plugin and this is my Dockerfile: FROM openjdk:8-jre-alpine ENV TZ=Europe/Rome RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo ...
1
vote
0answers
52 views

Why my newly created user is not inheriting $PATH variable

I added a new user dev on my Alpine based image. After switching to the new user I see env variables are different in case of both root and dev user. Specially $PATH variable is different. But I think ...
0
votes
0answers
23 views

Unshare failed to create user namespace [duplicate]

I'm trying to create user namespace in RHEL 7 but unable to because of the below error: [root@teja7131 ~]# unshare -U /bin/bash unshare: unshare failed: Invalid argument I've been reading multiple ...
1
vote
1answer
74 views

Unable to create user namespace in RHEL

I'm trying to create user namespace in RHEL 7 but unable to because of the below error: [root@teja7131 ~]# unshare -U /bin/bash unshare: unshare failed: Invalid argument Please explain the correct ...
1
vote
1answer
36 views

Ansible, docker_container and depends_on

I am using ansible and docker_container module. But when I start my playbook, I have error like: "'depends_on' is not a valid attribute for a Task" This is my playbook: - name: Docker-compose ...
0
votes
1answer
62 views

How to simulate internet outage on a linux server

So I am trying to simulate internet outage on my virtual network. I cannot just turn off interface as suggested on the link below because I would like to simulate scenario where private network ...
0
votes
1answer
106 views

Running a CentOS Docker Image on Arch Linux exits with code 139?

I am trying to run a CentOS Docker Image on my Arch Linux host. Running the following command returns nothing except the 139 error code: $ docker run -ti centos:centos6 /bin/bash ...
0
votes
0answers
28 views

Kill a process inside docker in a “R” state

I'm having a process on my server that I can't kill, even with kill -9. It's in R state in top and in ps, and it's running inside docker. It's a ls I've started in a very large folder. It's taking ...
0
votes
1answer
24 views

starting docker daemon times out in openSUSE 15.0

I installed docker 17.09.1 on openSUSE Leap 15.0 via zypper. Unfortunately starting the docker service always times out. output of systemctl start docker: Job for docker.service failed because a ...
0
votes
1answer
64 views

apk tool gives permission denied

I get this error message running alpine linux in a docker container hosted by Ubuntu 18.04 in Vagrant with its host in turn being Windows 10 behind a proxy. I have set the proxy variables but still ...
0
votes
1answer
39 views

When uname reports aarch64 instead of arm64v8. Willl docker-ce still pull arm64v8 images

docker-ce now supports multiple architecture base images but looks for the tag arm64v8 instead of aarch64 (which is labelled as deprecated). Unfortunately my new ubuntu 18.04 host os uname reports ...
0
votes
0answers
32 views

“mmap failed for CEN and END part of zip file” && “Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain”

I try to build Dual Boot Patcher apk from Debian 8 Jessie host, a Docker with Fedora Linux guest environment, but I get error, when I do "make apk": mmap failed for CEN and END part of zip file Error:...