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
Tag: docker
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
Using wait-for-it.sh to wait on an endpoint with a slash
Background: I have a project that runs a docker image (in production it will run in knative, but for testing, docker/docker compose is a good first step), and as part of my CI/CD pipeline, I would like to run acceptance tests against the image. I have the image configured to run in docker, and the (cucumber) acceptance tests run as
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
Trying to download python from a docker container while using GitLab CI
The last stage of my GitLab CI pipeline is a selenium test. I’m trying to automate it through GitLab CI: I have tried writing this a few different ways– not installing curl, installing everything on a different line… But every time I get this same result: I understand that it is better to have a docker container pre-packaged with python
How to block the connection to an IP which is created in docker container on host
There is a docker container running in bridge network mode. Inside the container, it creates a connection to, say, 10.123.123.1:6666. I’d like to block this connection on host through IPTABLES, something like sudo iptables -I OUTPUT -p tcp -d 10.123.123.1 -j DROP, but it doesn’t work. Could anyone help me on this please? I can’t even see this connection on