Hot answers tagged

16 votes
Accepted

Why does the official docker image for mongo not use XFS, and then warn about not using it?

The full answer. A docker image doesn't have a file system. A docker image is a bunch of tar files each representing a layer plus some JSON files with the image metadata. When a docker image is pulled ...
AlexD's user avatar
  • 9,849
3 votes

Can I use 127.0.0.2, 3, etc to map docker container ports to the same port but different loopback IP on my docker host?

Yes you can and for the whole /8 subnet if you want to do it
djdomi's user avatar
  • 1,898
2 votes

NGINX Reverse Proxy configuration not working

The culprit is most likely SELinux, where network operations of services are restricted by default. As documented you can use these two commands to enable network access for nginx permanently: ...
Gerald Schneider's user avatar
1 vote

HEREDOC in Dockerfile produces no output

Parsing this command: RUN <<-EOF > /root/.npmrc registry=https://\${NPM_VIRTUAL_REGISTRY_REPO_URL} strict-ssl=false always-auth=true email=\${PUBLISHER_EMAIL} //\${...
BMitch's user avatar
  • 6,269
1 vote

Can I use 127.0.0.2, 3, etc to map docker container ports to the same port but different loopback IP on my docker host?

Yes you can do it, but if you have routing requirements in the future it will be quite difficult because everything is running on the "front-end" site is running on one ip.
Turdie's user avatar
  • 2,514
1 vote
Accepted

Can a Docker container run as a Jenkins build node with both Java 11 and Java 8?

Sure. You can install java 11 in one location, and use java 8 as default. Something in the line (pseudo file): # Dockerfile FROM: … COPY java11.tar /opt RUN yum/apt install java8 # make sure java8 in ...
kofemann's user avatar
  • 4,821
1 vote
Accepted

Kubernetes namespaces vs Docker namespaces

No, Kubernetes namespaces don't rely on Linux namespaces, they are internal to Kubernetes itself. Linux namespaces are used to isolate each pod. All containers in the pod share the same network, ipc ...
AlexD's user avatar
  • 9,849
1 vote

Dockerized http services are not accessible from nordvpn meshnet

TL;WR - Enable the local network access permission in Meshnet on the Docker machine for peers who should be able to access the containers. nordvpn meshnet peer local allow [command options] <...
Adam Frydrych - Meshnet's user avatar
1 vote

Restrict docker container

Basically my container should be running and it should be locked , no one should be able to access the code inside it. You can't make docker images uncopyable. Plain and simple. It's simply ...
vidarlo's user avatar
  • 8,937
1 vote

Install Services with a Script or Use Docker Compose

Opting for Docker Compose offers a standardized and streamlined approach to managing your services across different environments. By defining all your services in a single Docker Compose file, you ...
sahith palika's user avatar
1 vote

Install Services with a Script or Use Docker Compose

I would suggest that you spend some real effort looking at docker-compose, it is certainly the path of least resistance in terms of what is happening to the underlying OS and packages when it comes to ...
Louis Parkin's user avatar
1 vote

Is it possible to install docker on Windows Server 2016?

If you want docker on Windows server, for running Linux images, the obvious solution is to just install the Hyper-V Role. Create a VM using your favorite distro, and install docker in there. If you ...
Zoredache's user avatar
  • 132k
1 vote
Accepted

VMWare Ubuntu - How to access a docker container in Ubuntu while also running nginx

Docker creates it own network and network adapter. When running the containers you can use the option network_mode host to be able to connect from the host operating system to the docker network where ...
Turdie's user avatar
  • 2,514
1 vote

Permission denied for unix socket mounted in docker container as volume

Determine the user and group that PHP-FPM is running as on the host. You can usually find this information in your PHP-FPM configuration file (commonly located at /etc/php/7.x/fpm/pool.d/www.conf) ...
Turdie's user avatar
  • 2,514
1 vote

Docker service unreachable on host-IP, but works on localhost

I've been experiencing same issue lately. It appeared that system has created specific rule for the docker: > ip rule 0: from all lookup local 32765: from 192.168.16.45 lookup routes3 32766: ...
freenik42's user avatar
1 vote

Route Docker container traffic through another container

In the most recent versions of docker-compose this can be done using network_mode: "container:name" version: '3' services: nginx_proxy: image: nginx ports: - "8080:80&...
Turdie's user avatar
  • 2,514
1 vote

docker run attempts to mount a file I didn't ask for

This can happen when you start your container with volume mounts attached, commit that container as a new image using docker commit, and then start the app again with one or more of those earlier ...
TerekC's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible