On my MacOS laptop I mounted a file in my newly created container using: However, apache seems to have issues to read the file. We can learn by running a bash command in the container that the read permissions is not applied for all: I tried the same process on docker installed on a Linux Debian 8 machine and…
Tag: docker
Docker container apt-get install can’t find package
I’m trying to spin up a docker container that populates mongo via a node.js script that I have. With the script below, I get the error : with this dockerfile: Why does apt-get not find nodejs? Answer Seems i was missing RUN curl –silent –location https://deb.nodesource.com/setup_0.10 | bash …
How do symlinks in a host volume work in Docker containers?
My question is about what happens when you create a symlink from inside a container in a host mounted directory. It’s easiest if I just ask with an example. Assume we start a container like so. Most of the command doesn’t matter, what’s important here is the host volume mount. While in the c…
gsub encoding error when running on Linux Docker Container Invalid byte sequence in US-ASCII
I have a string I’m converting from “rn” to “n” line ends using: When I run it on my Windows host, it works fine. When I run on my Linux host, in a docker container, I get this error: I am running Ruby 2.2. Answer I fixed it by doing this Invalid byte sequence in UTF-8 (ArgumentE…
Docker containers as Linux services?
I just created a secure Docker Registry and ran it on a remote VM (using docker run …). I then ran docker ps and saw that it is in fact running. I exited the machine and then SSHed back in. Again, I ran docker ps and verified it “survived” me exiting the SSH session. This has me wondering: d…
Could not install mysql-server inside docker container
I want to configure a container with MySQL, thereafter I will add a java application to the container. But, I could not install MySQL-server inside the container. here is my dockerfile: I got the following error: Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.5_5.5.44-0ubuntu…
Simulate VPN connection in docker
I want to simulate a VPN traffic on my machine. I’ve set up VPN server which runs inside a docker image. I can successfully log in. The problem is that the docker image is running on my machine on the default docker’s bridge – docker0. There is no change if I do connect to machine using VPN …
Can I Run docker on linux mint 13? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Nancy on Linux is using 100% CPU
My nancy web-apps are using up together 100% CPU without them actually being used. They are running inside a docker container on mono. The only thing I could think about to cause this, would be the endless loop in my main function, something like but I thought, Console.ReadLine() would be blocking and therefo…
Bash script wait depended commands processes
I am fairly new in bash scripting. I need to use bash script for manage my microservices, so these services need build and deploy(on docker). So I have commands like that : So as you see(a little part of script, i am grouping depended commands in functions),commands need to wait previous depended commands lik…