Tag : bash

I’ve run below command docker run -v /f:/zim -w /f:/zim -it openzim/zim-tools:latest zimdump dump –dir=/f:/zim/html /f:/zim/wikipedia_en.zim and it returns an error Exception: error 2 opening file "wikipedia_en.zim. I’m sure that the file wikipedia_en.zim has path F:zimwikipedia_en.zim. To investigate this error, I first run docker run -v /f:/zim -w /f:/zim -it openzim/zim-tools:latest sh and get C:UsersAkira>docker ..

Read more

I have a script that runs on clean Ubuntu machines and installs Docker in order to pull some images. However, since it requires the container registry’s username/password for docker login before pulling, I want to validate that the authentication will work before I proceed with the Docker installation, so the user wouldn’t have to run ..

Read more

I’m on centOS 7 trying to run the following on a running docker (v19) container. I’m using python3.6.4, using subprocess.Popen: command = f’docker exec -it 112233443322 bash -c "source /path/to/venv/activate && python3 -m commands.here…" Popen(command.split(), stdout=PIPE, stderr=STDOUT) The error I’m getting is: Error: b’path/to/venv/activate: -c: line0: unexpected EOF while looking for matching `"’rn/path/to/venv/activate: -c: line ..

Read more

I want to create a client certificate for Kubernetes manually for learning purposes (i.e., not by sending a CSR request to Kubernetes API). I have extracted kube-ca.pem and kube-ca-key.pem from a control-plane node (and renamed them to kube-ca.crt and kube-ca.key). I create the client certificate using the following commands: openssl req -new -newkey rsa:2048 -nodes ..

Read more

I have a pom.xml file which I managed to use the above command to extract and assign data to a variable. The data is extracted form <version>1.1.99-THIRD-PARTY-CARD-SNAPSHOT</version> Tested locally and it works fine When I do the same inside my Dockerfile, the variable is not assigned to anything i.e its blank What is the behavior ..

Read more