Questions tagged [docker]

Docker is an application to create containers for applications.

Filter by
Sorted by
Tagged with
25
votes
5answers
14k views

What's the difference between `curl | sh` and `sh -c “$(curl)”`?

One easy install method for Docker (for example) is this: curl -sSL https://get.docker.com/ | sh However, I have also seen some that look like this (using the Docker example): sh -c "$(curl -sSL ...
2
votes
1answer
1k views

Docker run causing kernel panic

I'm trying to run Docker under a Linux Mint 17.3, and every step works fine(pull, rm, images, etc), but whenever I try to run any containers, my computer freezes totally (though the music keeps ...
96
votes
5answers
132k views

Unable to locate package `docker-ce` on a 64bit ubuntu

I'm trying to install Docker on a Ubuntu 64 machine following the official installation guide. Sadly Ubuntu seems it is not able to locate the docker-ce package. Any idea to fix it or at least to ...
0
votes
1answer
23 views

Docker-compose.yml file format problem

I'm just testing the construction of a Moodle/Mariadb installation using docker-compose, a lot of information around is conflicting and the differences between versions doesn't help, but I've managed ...
1
vote
1answer
4k 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
97 views

SQLSTATE[HY000] [2002] Connection refused - docker-compose exec app php artisan migrate

Docker containers are up and running; It's a Laravel install with docker, mysql and nginx. I want to run the migrations within the docker container i.e. docker-compose exec app php artisan migrate ...
0
votes
1answer
119 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 ...
1
vote
3answers
39 views

GnuPG fails to find default key to sign when using a smart card, yet I have only one. What am I doing wrong?

I'm using Debian-based Docker image, and I have only one usable key in the keyring: $ gpg -K /tmp/test-keyring/pubring.kbx ------------------------------- sec> rsa2048 2012-01-16 [C] [expires: ...
0
votes
0answers
23 views

Help need to setup a Ruby on Rails App stack using docker

I have setup a Rails app on a docker container and a apache web server on another container. I need the apache web server to access the rails app for every request made. The issue is I have to ...
2
votes
1answer
1k views

Docker - Force to Use AUFS Instead of BTRFS

I am having significant problems using Docker on my BTRFS filesystem, and I suspect that is due to a lack of stability with the BTRFS driver. I would rather figure out how to switch the fs driver than ...
1
vote
1answer
1k views

iptables - Map port on the host to a port in a Docker container

I am running a Docker container inside AWS Elastic Beanstalk, running Amazon's 'Amazon Linux', which I believe is a CentOS derivative. In my development environment, I'd like to enable debugging on ...
0
votes
1answer
873 views

How to write Docker logs to a file in real time (à la `tail -f`)

I docker that output logs stdout stderr, which can be viewed using: docker logs -f $LOGS_CONTAINER_ID I also added 'sed', which puts the container id on each line: docker logs -f $LOGS_CONTAINER_ID ...
0
votes
1answer
39 views

How can I set DOCKER_HOST environment variable?

docker is installed and the service is active. But when I run a Maven build I get the error: [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.27.2:stop (stop-staled) on project egisso-...
1
vote
1answer
3k views

docker fails with “iptables: No chain/target/match by that name”

When I try to publish container's ports to the host, docker fails to add iptables rules: $ sudo docker run --rm -p 8080:80 nginx docker: Error response from daemon: driver failed programming external ...
0
votes
1answer
38 views

Cannot run apt update in a Debian docker container [duplicate]

I've got the error in the docker container php:7.2.20-cli E: Release file for http://deb.debian.org/debian/dists/buster-updates/InRelease is not valid yet (invalid for another 9h 1min 57s). Updates ...
0
votes
1answer
903 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 ...
0
votes
1answer
97 views

Route (docker) container traffic through IPSec

I have a ipsec (strongswan) connection to work, which in itself works fine, however traffic from containers doesn't seem to go through the ipsec tunnel. This is not expected from an end-user ...
0
votes
1answer
12 views

Force changes from the outside to propagate into the container

I have a Docker container based on the gitlab-ce/latest image. In order to allow certain additional operations with Ansible while being minimally invasive, I opted to bind-mount over the /assets/...
0
votes
1answer
32 views

Keycloak failing to start with “failed to resolve interface private”

This is a note for my future self and anyone running into an failed to resolve interface error with Keycloak/Wildfly. MSC000001: Failed to start service org.wildfly.network.interface.private: org....
0
votes
0answers
26 views

HDFS on docker containers - is it possible?

we are using Hadoop cluster based on HDP version - 2.6.5 with ambari platform we want to know if we can use the following HDFS components on docker containers as: journal nodes ZK fail controller ...
0
votes
1answer
16 views

How can i run diferent image of my OS with diferent configurations depending of what im going to do?

I would like to be able to run a diferent version or images of my OS. The idea is to have one os installed but being able to run deferent versions. Is like if i want to ply video games i Just select ...
0
votes
1answer
44 views

Why I can't connect to postgres in docker?

I used docker-compose from this project. Both docker containers were launched successfully. kshnkvn@kshnkvn-vb:~$ docker ps CONTAINER ID IMAGE COMMAND ...
0
votes
2answers
40 views

How to edit yaml file in Dockerfile or in shell?

In Dockerfile, I upload one configuration file from curl, which I then need to edit a little, here is an example structure: client: ... server: applicationConnectors: - type: http port: ...
0
votes
1answer
976 views

How to install debian jessie-backports package after package removal using Docker?

The problem I'm trying to use jessie-backports in a docker repository for a Ruby on Rails project using this Dockerfile: FROM ruby:2.4.1 ENV DEBIAN_FRONTEND noninteractive ENV ...
0
votes
0answers
22 views

Connect docker-container with other container by unit-socket

I'am trying to connect to containers by unit-socket/ docker run -d -v /var/lib/docker/overlay/[container_id]/var/run/postgresql/.s.PGSQL.5432:/socket_volume/.s.PGSQL.5432 -p 50000:8080 my_repo/...
0
votes
0answers
4 views

docker networking: proxy not reached

I've deployed a k3d cluster inside an virtual machine. So, here I'm there're two host: virtual machine host, and docker host. My docker containers are: $ docker ps CONTAINER ID IMAGE ...
0
votes
0answers
31 views

killall gives me `no process found ` on a mac

I am a bit confused as the same command works on linux which does not work on my mac in a Ubuntu Linux docker container. root@9xxx:/app# ps aux USER PID %CPU %MEM VSZ RSS TTY STAT ...
2
votes
0answers
35 views

Core file may or may not escape docker container, depending on the core pattern

I am a docker noob who recently ran into a problem. I quote a random pipermail from years ago that poses the question far more elegantly than I ever could: I noticed the following core_pattern ...
0
votes
1answer
20 views

How to update docker-machine on Linux?

I installed docker-machine on my Ubuntu 18.04 with the instruction provided in Install Docker Machine. Now how do I update it to a more recent version?
0
votes
0answers
21 views

mount overlay upperdir under lowerdir?

I'm new to mounts and overlayfs. Is it possible to put upperdir under lowerdir? e.g. volumes: app: driver: local driver_opts: type: overlay o: lowerdir=${PWD},upperdir=${PWD}/...
2
votes
1answer
547 views

docker-compose, less and SIGINT

I have a script that boots up a test environment using docker-compose. This script pipes the mixed stdout of many docker containers on stdout through less: # This is part of a larger script with some ...
1
vote
0answers
15 views

Why does Docker use the same user and cgroup namespaces by default, when starting a new container?

Why does Docker use the same user and cgroup namespaces by default, when starting a new container? I don't understand why Docker doesn't set up a new user namespace, so that root in the container isn'...
0
votes
1answer
27 views

groups command is working but groups <username> is not, inside a docker container. What's the reason?

Inside a docker container, if I type groups it works and gives 'root' in the result but when I type groups <username> it says groups: '<username>': no such user. What is the reason for ...
0
votes
0answers
37 views

Running GLFW in Docker

I have a simple program written in Go that opens a blank window using GLFW. I'd like to automatically run tests, therefore I have been trying to get GLFW running in docker. So far I've already managed ...
-1
votes
0answers
10 views

how to pass a pre-existing custom linux network namespace to kubernetes POD

how to pass a pre-existing custom linux network namespace while creating a kubernetes POD. we are using docker for containers.
0
votes
0answers
22 views

LVM Disk Space and Docker

I am trying to determine how LVM partitions a particular disk in AWS ECS. Per AWS Docs (see here), an unmounted LVM is used to for running containers - I guess this is where the container(s) file ...
2
votes
0answers
38 views

Opening of graphical app not working at second call

I need to work with a graphic application which runs in a docker container on a remote machine (running Ubuntu 16.04) which I access via PuTTY from my local Windows machine with Xming running. I ...
0
votes
0answers
13 views

docker multi-user jupyterlab

I am trying to implement multiuser access to one docker-compose service container: here is docker-compose: version: '2.3' ...
0
votes
1answer
1k views

How to connect to local host 8080 using terminal's hostname in mac?

I have been using docker through direct installation of Community Edition. Can anyone please let me know how to connect to local host after creating a docker container using my machines hostname? ...
-1
votes
1answer
30 views

Can't reach Tomcat default page in localhost:8080 for Ubuntu 16.04 Docker container

I'm trying to run a simple Tomcat server. But I can't see the Tomcat default page. 1) I ran this command to run the container docker run -it --entrypoint bash e36658dffbd8 2) I opened up localhost:...
0
votes
0answers
46 views

Mount file with 0600 permissions to podman

I have a problem with mounting file to podman. My file permissions is 0600 and it isn’t available to the container. If I use the --privileged option or volume propagation option z it is working. But ...
1
vote
1answer
48 views

sg: not found - Alpine Linux

I am trying to execute a command with a specific user group as described in the linked question (How to run a process with a specific group?) on Alpine Linux, but the system says "not found" ~/work $ ...
0
votes
0answers
11 views

Kong docker image build fail

I am on fedora. Trying to run Kong from official docker image. It is showing me the following error: ERROR: Service 'kong' failed to build: The command '/bin/sh -c chmod 777 start.sh' returned a non-...
0
votes
1answer
43 views

Could not get into docker container's bash: hydra container is restarting

Using this documentation: I've pulled the vimagick/hydra docker image Created docker-compose.yml file in ~/Soft/docker/ folder: hydra: image: vimagick/hydra command: sleep infinity volumes: ...
0
votes
1answer
32 views

`Package has no installation candidate` on Debian but not on Ubuntu

I'm using Docker with the php-fpm image, which uses Debian Buster as its OS. I'm a bit confused as why these two packages: php-smbclient and php7.3-sybase are not able to be installed, as they are ...
0
votes
0answers
16 views

Virtual inline traffic device

In the physical world in case two switches connected to each other with a cable, I can put a device in the middle, so all traffic would flow through that device. Switch A <--------------------> ...
0
votes
0answers
32 views

Does rootless Podman support varlink?

I'm currently taking a look at a bunch of stuff with PodMan. One feature that I'd like is to be able to remotely interact with my pods—start and stop them from some other service. I saw the Varlink ...
2
votes
1answer
855 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 ...
0
votes
0answers
28 views

Privoxy not logging after debug level set

First: Thank you all for building this awesome community. I'm learning a lot. Second: I've installed privoxy 3.0.26 in a docker container on a Debian server and set the log level in /etc/privoxy/...
1
vote
1answer
32 views

Docker volume mount using CLI command

I've created two volumes I wish to use to store content of two folders /etc/php and /var/www inside of container: $ docker volume create dvwa_etcphp $ docker volume create dvwa_www I have a ...

1 2 3 4 5 20