Questions tagged [docker]

Docker is an application to create containers for applications.

Filter by
Sorted by
Tagged with
0
votes
0answers
28 views

How can I safely pass an argument containing '{{}}' to a bash script? [duplicate]

The following arguments are valid for docker command: docker ps -f"status=exited" --format 'table {{.Names}}' #output: # jovial_hellman # modest_blackwell So I have created this script docker-ps-...
0
votes
1answer
34 views

Append a line in a service file

I've built a docker container and I need to make changes to the service.nginx file. I have the following variables defined: LINE=$(cat /usr/lib/systemd/system/nginx.service | grep -n "ExecStart=" | ...
0
votes
0answers
15 views

Move docker images without using `docker`

I have a Docker host that became unreachable for me. The only thing I could get was snapshots of its volumes. I need to extract the docker images from those snapshots. I created regular volumes from ...
1
vote
1answer
147 views

systemd “Failed to set up mount namespacing” in Docker container

I recently updated a Docker that uses systemd internally from Debian stretch to Debian buster. And since then it's not working. So accoding to systemctl status it fails to setup the namespace: Dec ...
0
votes
0answers
33 views

How make timeout docker container after restart server?

sudo docker run --restart always -itd I need to make a docker container start timeout after rebooting the machine. About 10 seconds. the container starts after rebooting itself --restart always, but ...
0
votes
0answers
10 views

Memory attribute of ContainerDefinitions

Docker container is a user space process(with pid) running in Docker host, but in separate process namespace(non-default), as shown below: $ docker ps -a CONTAINER ID IMAGE ...
1
vote
1answer
98 views

Windows Subsystem for Linux (WSL) not actually saving $DOCKER_HOST

The situation: I develop on a windows VDI that uses the WSL to run docker, and I'm actually using a remote docker daemon running on a Red Hat server. Locally, I have the DOCKER_HOST variable set to ...
0
votes
2answers
35 views

docker serivce starts every hour though it is disabled

Though the docker.service is disabled, it is starting every hour, at the top of each hour. I stop it and for unknown reason it starts again at the top of next hour.... I don't find any crontabs which ...
1
vote
1answer
85 views

How to install PHP 5.3 on CentOS 7 (troubleshooting propose)

I would like to install PHP 5.3 version in CentOS 7 for development propose. I know this PHP version has security problems but I need to validate why a bug happens with this version of PHP with a ...
0
votes
1answer
62 views

How do I determine amount of resources that Docker host needs to provision to a container, by inspecting a running system?

My goal is to define container definitions("ContainerDefinitions") with appropriate memory size needed in RAM to launch the docker container. For example, below code snippet for jenkins container(...
1
vote
1answer
99 views

how to deal with `yum repolist is 0` and `yum list empty`?

I run a docker image (gitlab-runner) on a centos 7 host machine. In the container, it is strange that it has apt command but has no yum command.But the system seems to be a centos but not ubuntu? ...
3
votes
0answers
200 views

Cross-arch Docker container will stop emulation

I'm trying to build a portable cross-arch Docker container using QEMU. However, depending on the host system and the programs installed on the host the container behaves differently. Running the ...
0
votes
1answer
68 views

Systemd not getting pid 1 when in docker container

I am trying to bring up continuous integration pipeline and that requires me to apt install an abc.deb file inside container. The debian/control file do include: Depends: ${python3:Depends}, ${...
0
votes
1answer
121 views

too many links in /var/lib/docker error while building Docker container

Someone suggested on SO to post here. Reposting from https://stackoverflow.com/questions/59024392/too-many-links-in-var-lib-docker-error-while-building-docker-container Trying to run docker-compose ...
0
votes
0answers
260 views

transfer closed with xxxxx bytes remaining to read

Trying to download version(5:19.03.4~3-0~debian-stretch) of docker-ce using dockerfile: # apt-cache madison docker-ce docker-ce | 5:19.03.4~3-0~debian-stretch | https://download.docker.com/linux/...
0
votes
0answers
25 views

How to Install Gitlab Server with Docker on Ubuntu 18.04 LTS? Access to miki was denied

I followed step-install-gitlab tuorial. The contents of my yml file: web: image: 'gitlab/gitlab-ee:latest' container_name: 'gitlab-howtoforge-tutorial' restart: always hostname: 'miki' ...
0
votes
1answer
57 views

Bind network link exclusively to Docker container

Is it possible, with Docker, to bind a host network link exclusively to a Docker container? In other words, to move eth1 (or whatever) into a container so that it is only avalilable to that container ...
0
votes
1answer
109 views

How to test a linux kernel upgrade inside a Container

As I know Docker uses host OS kernel, there is no custom or additional kernel inside container. All containers which run on a machine are sharing this "host" kernel. Working with a containerized ...
0
votes
2answers
25 views

Make changes to a mounted volume from inside Docker container appear as if performed by a regular user while also keeping root privileges

If I use the --user argument of docker run, changes (like a simple mkdir for example) will appear as if performed by that (non-root) user. However, I won't be able to run commands like apt inside the ...
1
vote
2answers
116 views

Fedora 31 - grubby --args=“systems.unified_cgroup_hierarchy=0” broke the system

I upgraded to Fedora 31 today. All good. I came across issue with Docker so I found the solution to run grubby --args="systems.unified_cgroup_hierarchy=0" and then grub2-mkconfig Now, systems won'...
0
votes
1answer
41 views

Filter docker traffic

I have on my system many docker-containers with their own ports. Docker doing some magic with IPTables so its difficult to define some custom rules for it. For only http-connections its not a problem ...
0
votes
0answers
15 views

Python script output from docker container that is bash'd into does not 'overwrite' output lines?

I have an nvidia-docker container running, I have bash'd into it with sudo docker exec -it container_name bash and starting running a Python script which trains a model with Keras python main.py ...
0
votes
0answers
28 views

ldap_connect function in a apache - php container

I have a docker-compose.yml file with the following: web: image: nginx:latest ports: - "8080:80" volumes: - ./code:/code - ./site.conf:/etc/nginx/conf.d/site.conf ...
0
votes
1answer
21 views

stop/restart background job started by cron

I have the following cronjob which pipes docker (apache) logs into a file: * * * * * flock -n /srv/www/htdocs/scripts/pipe.lock /srv/www/htdocs/scripts/pipe_docker_logs.sh the pipe_docker_logs.sh ...
2
votes
0answers
282 views

Docker containers have no internet access

So I am recently switched to Manjaro as my daily driver on my tower and my laptop. On both I experience the same issue: Docker container can't connect to the internet. I am testing this with docker ...
1
vote
1answer
414 views

Docker “command not found” after reinstallation

I am using Mint 19.2, based on Ubuntu 18. I uninstalled using apt purge & then deleting the folder. Finally, reinstalled Docker using the commands from the official site. However when I run the ...
-7
votes
1answer
263 views

SED commands for text transformations

Kindly help. RUNNING SUCCESSFUL IN LOCAL with help of awk achieved this below transformations, now locally (Linux cent OS with GNU Awk 4.0.2 version) is running perfect, but problem is with the remote ...
0
votes
1answer
72 views

Deploy gatsby on nginx has wrong redirect address when refresh and brings out port number?

I have a website, and deploy the site on nginx in docker container. The problem is when I refresh the site the chrome address bar brings out the port number and redirects wrong. I am a front-end ...
0
votes
1answer
73 views

Docker mounted directory and permission

I am running an nginx docker with document root /var/www/html/. I have mounted /opt/app in my host machine to /var/www/html/ of docker. An ftp user webftp is created in hostmachine and is able to ...
0
votes
1answer
22 views

How to subscribe docker EE license for commercial setup?

We are picking CentOS in our business, as AWS EC2 instance: $ rpm --query centos-release centos-release-7-6.1810.2.el7.centos.x86_64 Here are the steps to install docker EE on CentOS: https://docs....
0
votes
0answers
17 views

Add graphical acceleration for xming for GUI inside docker

I was able to run gui app inside docker and forward it through xming on my Windows PC. It seems that it works fine. But the problem is i can't see any graphical elements of application: Could it be a ...
0
votes
1answer
64 views

Unmet dependencies in base packages - jenkins dockerfile

Below is the dockerfile: FROM jenkins:2.60.3 ENV DEBIAN_FRONTEND=noninteractive USER root ARG DOCKER_GID=497 RUN groupadd -g ${DOCKER_GID:-497} docker ARG DOCKER_ENGINE=1.10.2 ARG DOCKER_COMPOSE=...
0
votes
1answer
2k views

No public key available for the following key IDs: AA8E81B4331F7F50 [closed]

Below command: RUN apt-get update -y && \ apt-get install apt-transport-https curl python-dev python-setuptools gcc make libssl-dev -y && \ easy_install pip is giving error: ...
0
votes
1answer
333 views

How to synchronize timezone in Docker containers

I've some issues to have similar timezone in all containers of a docker-compose stack. I tried to add TZ=Europe/Paris as environment variable to containers, and also tried to use : volumes: -v /...
1
vote
1answer
304 views

Tool for manipulating yaml files?

We want to implement a workflow that includes having YAML configuration files where we wish to change some of the contents before actually using them, and we are looking for a good command line tool ...
0
votes
0answers
40 views

Is it possible to export/save Docker's full Linux OS system as a rootfs.tar.gz?

I would like to export or save the full Linux OS, i.e, all root directories – /bin, /home, /usr, etc. as a rootfs.tar.gz and to view and access all full root directories. If I mount the Docker's ...
1
vote
1answer
44 views

Is it possible to install applications in docker container permanently?

I am using docker but every time i run it, i should install some important applications for my work and that needs some effort to edit sources.list with cat then installing sudo and nano then ...
0
votes
0answers
13 views

How to run keras using GPU support oferred by tensorflow image?

guys, I wanna use my GPU to run a container based on the image of tensorflow(specifically, the image tensorflow/tensorflow:latest-GPU-py3-jupyter). I would like to use Keras over tensorflow but I ...
2
votes
0answers
24 views

Cannot find Docker package in RHEL7 repository

According to Red Hat documentation, the repository rhel-7-workstation-extras-rpms should contain Docker (apparently it was originally only in server package but now is in both), but it does not appear ...
1
vote
1answer
27 views

Choosing if using Docker or not, with or without Virtual Machines on a Debian 10… Number of CPU cores, of virtual CPUs? [closed]

Currently I work on my personal computer having an i7-3820 processor with 4 cores, 8 hyperthreads. I run a standalone apache-spark sat with a parameter of local[6] (6 vCPU) to do some calculations. ...
1
vote
0answers
41 views

Execute Command from docker on host

I do have a few question but first I want to explain what I am trying to do. I am working on creating my own mirror for the opensuse repositories with rsync. This is already tested and works so far. ...
0
votes
1answer
63 views

docker image prune filter not working

ubuntu@ip-10-0-0-191:~$ docker pull busybox Using default tag: latest latest: Pulling from library/busybox 0f8c40e1270f: Pull complete Digest: sha256:...
0
votes
1answer
91 views

Connect to a mariadb running on host from docker

I am trying to install nextcloud on a pi. So i installed the docker container, and i can access the first visit page. So i want to use mariadb as database backend. Then i typed: host: 192.168.178.62:...
0
votes
0answers
26 views

Docker stop says container doesn't exist but docker start does

I have a docker container tagged ppe sudo docker start ppe works But while it's running or not, sudo docker stop ppe returns error: Error response from daemon: No such container: ppe Why is it doing ...
0
votes
1answer
184 views

How to build a chroot using docker?

Currently I am able to build an Ubuntu 18.04 32-bit chroot on my developer machine and I wanted to know if I can have the process happen inside a docker container. The process I use: Untar an ...
0
votes
1answer
109 views

centos 7 install docker failed

When i am going to install docker, the issue happens when I type in this command at Linux shell : sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo ...
0
votes
1answer
94 views

Run a container with access to a device without running it as root

I want to run a zigbee2mqtt container. I need to bind a device to the container doing : devices: - "/dev/serial/by-id/usb-Texas_Instruments_\ TI_CC2531_USB_CDC___0X00124B00194AD935-if00:/dev/...
0
votes
2answers
325 views

How to run docker inside an lxc container?

I have unprivileged lxc container on Arch host created like this: lxc-create -n test_arch11 -t download -- --dist archlinux --release current --arch amd64 And it doesn't run docker. What I did ...
1
vote
0answers
29 views

Unable to authenticate at docker-mailserver

I am running a docker-mailserver via docker-compose. The programm seems to run fine, it doesn't give any error messages. I can add user as much as i want and stuff, everything seems to be fine. ...
0
votes
0answers
34 views

Catch 22 with user 'nobody' and AWS configure on amazonlinux docker image

I created a docker container from the latest amazonlinux image. I want to pre-install some base level products on it. As a result, I run: 1 yum install -y initscripts 2 yum install python3 3 curl -...

1 2 3 4 5 20