I have enabled user namespaces and now I wanted to run a docker container with –privileged flag, yes I know it’s a bad practice but still I wanted to run that docker as –privileged. But I can see this error pops-up, so was curious what is this error? What am I doing wrong? docker: Error resp…
Tag: docker
How does OCI/runc system path constraining work to prevent remounting such paths?
The background of my question is a set of test cases for my Linux-kernel Namespaces discovery Go package lxkns where I create a new child user namespace as well as a new child PID namespace inside a test container. I then need to remount /proc, otherwise I would see the wrong process information and cannot lo…
Docker nginx php permissions issue
I’m just learning Docker and took on a little pet project and wondering if something is possible permission wise with docker/nginx/php. I’m attempting to convert an old IIS-Windows/php/MySql project of mine to Docker/nginx/php/mysql I’m most of the way there and have the 3 containers linked …
Docker – is it safe to switch to non-root user in ENTRYPOINT?
Is it considered a secure practice to run root privileged ENTRYPOINT [“/bin/sh”, entrypoint.sh”], that later switches to non-root user before running the application? More context: There are a number of articles (1, 2, 3) suggesting that running the container as non-root user is a best pract…
What’s the difference between docker run –device and docker run –volume?
If everything is “just” a file in linux, how do files/nodes in /dev differ from other files such that docker must handle them differently? What does docker do differently for device files? I expect it to be a shorthand for a more verbose bind command? In fact, after just doing a regular bind mount…
Docker bind source path does not exist even though it does
I have two ubuntu server VMs running on the same proxmox server. Both are running docker. I want to migrate one container from one of the VMs to the other. For that I need to attach a USB drive to the target VM which will be mounted inside the docker container. I mounted the drive exactly the same way in
Save multiple docker images using one command
Currently I am exporting docker images using below command docker save imageName | gzip > imageName.tar.gz docker save mysql | gzip > mysql.tar.gz This command working fine for single image, i have tons of docker images in my local system, want to export. but i don’t know how to export all images …
docker run failed at “python3: can’t open file”
My code is in directory /test-scripts, details structure is as follows. Run the following command in directory /test-scripts. /test-scripts(master)> And my Dockerfile content is as follows. Use $user, $pwd above to replace the real value in this question. In my opinion, the file IssueAnalyzer.py will be co…
“protoc: not found” on an Alpine-based Docker container running Protocol Buffers
I’m trying to build a simple container which downloads a Protocol Buffers binary from the release page (https://github.com/protocolbuffers/protobuf/releases/tag/v3.13.0) and adds it to the path. Following the Linux instructions at http://google.github.io/proto-lens/installing-protoc.html, I’ve att…
How to get Docker desktop on Ubuntu?
I am new to Docker/Kubernetes and trying to see if there is a way to get ‘Docker Desktop’ like functionality on Ubuntu, which is my primary development machine. All I know from my search is that the ‘Docker Desktop’ is only from Windows and Mac. It contains many useful tools bundled to…