Skip to content
Advertisement

Tag: docker

The std::filesystem current_path returns the root one

I just wanna to print the current path and its content, via std::filesystem::path::current_path (the compiler is emcc this one). Some code below: And for windows it works fine, the output looks like: However, whether for Linux subsystem or for docker container with Ubuntu image it just prints the root directory: May be I something missed apropos the Linux’s std::filesystem? Answer

uWSGI server does not run with & argument

I build a docker image which runs flask on an uWSGI server. I have a uwsgi.ini file with configuration. When I use CMD [“uwsgi”, “–ini”, “uwsgi.ini”] in the Dockerfile, everything works fine and the server runs, I can access my flask app via the browser. The only problem is that I cannot use the container’s bash while it’s running, as

Continuously restart container in Docker

I am working on ARMv7 Processor rev 2 (v7l) and I have some troubles with Docker. I did soft link the Docker Root Directory to /media/sd (SD card). Now I am installing Grafana (software) on it. I have trouble with continuously restarting container on it. This is what I did: docker run -d -p 3000:3000 –name=grafana –restart=on-failure grafana/grafana What I

Docker node cannot find file on mounted volume

I’m trying to run a docker container that has a volume mounted on it that contains ssl keys/files. I keep getting a file not found error when I’ve triple-looked at all the directories and the error and can’t seem to wonder what is going on. To start off, here’s the portion of my code that I’m trying to run that’s

How can I install MSSQL Server in a Python Docker image?

I want to install MSSQL Server in a Python docker container to be able to run unit tests in a CI pipeline. The problem is that the installation keeps failing. How can I fix it? What I’ve tried This gives: Try 2 gives Answer The second example should be: Microsoft doesn’t document it anywhere, but this image contains two users

exporting list of variables in docker run

We have a set of variables in env file as given below examples.env Now, docker run cannot substitute $B for /path/path1, due to its limitations So, I want to export the variable in launcher script and then call those variable using -e flag, as given below mydocker.sh Now how to create docker command to get all the variables? Following docker

docker container can’t open symlinked file in volume mount during startup

I have a docker container which is launched with docker-compose.yml which contains There are symlinks in /tmp/mount/opt e.g. /tmp/mount/opt/my-app/test1.cfg which points to /host/path/test1.cfg When the container starts up, it fails with an error like: However if I docker exec -ti the_same_container bash and cat /opt/my-app/test1.cfg then I see exactly the expected contents. Also if on the host I run cp

Advertisement