HI recently downloaded mcandre/docker-java-slim and is trying to install a few java apps however I can’t get into bash? I think may be its not even installed. docker run -it –rm -v /home/ubuntu:/data –name test mcandre/docker-java-slim bash the above command fails! Is there anything else I can do? thanks! Source: Docker..
I am trying to execute a bash command in docker but I’m having trouble figuring out how to escape the single quotes around the table name user_mappings in my command. I’ve tried backslashes, double single quotes, and double quoted single quotes. I know I could get around it if I didn’t wrap the command in ..
Running a k8 cronjob on an endpoint. Test works like a charm locally and even when I sleep infinity at the end of my entrypoint then curl inside the container. However once the cron kicks off I get some funky error: [[email protected] device-purge]$ kubectl logs appgate-device-cron-job-1618411080-29lgt -n device-purge % Total % Received % Xferd Average ..
I’m testing an app on docker (search engine) but when I use docker run the bashrc doesn’t work if for example there was an alias inside bashrc, I can’t use it. The file bashrc is copied to the container but still can’t use it. My question is why not? is it only because that bashrc ..
guys. I wanna set an ssh connection for my docker. Here are my steps. My information: Ubuntu: pull docker docker pull citybrainchallenge/cbengine:0.1.1 go into the container, steps 2-5 are executed in the docker docker run -it citybrainchallenge/cbengine:0.1.1 bash install dependencies apt-get update apt-get install passwd openssl openssh-server openssh-clients change password passwd set the configuration, remove ..
I wrote a little script #!/bin/bash docker run -it –rm –name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp python:3 $(realpath $1) With this I want to be able to call scripts like python3 myscript.py However I get the error docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/absolute/path/to/file.py": stat /absolute/path/to/file.py: ..
In the following gitlab-ci.yml file, I’m using the commit hash of my project as a tag for its docker container. Its supposed to do the following: ssh on a server save the hash of the current local commit to a file named current pull and save the new hash to a file named new get ..
how can I run /bin/run1.sh and /bin/run2.sh after the container startup! also, if you can tell me how can I send the logs of /bin/run1.sh and /bin/run2.sh to container logs!! Docker file FROM ruby:2.5 COPY run1.sh /bin COPY run2.sh /bin RUN chmod +x /bin/run1.sh RUN chmod +x /bin/run2.sh COPY entrypoint.sh /usr/bin/ RUN chmod +x /usr/bin/entrypoint.sh ..
I am getting unexpected behavior when testing for read permissions on files using the bash builtin test in a ubuntu:21.04 docker image. When running test-r on files for which the user has read permission, the exit value is 1. The file is world readable. As far as I can tell, this happens with all files, ..
Running Mac OS 11.2.3 and Docker version 20.10.5 I am trying to run WebODM from this docker image: https://hub.docker.com/r/opendronemap/webodm_webapp When I try to the following command: [email protected]:/webodm# ./webodm.sh start I get: Checking for docker… can’t find docker! Check that the program is installed and that you have added the proper path to the program to ..