When I login into a running container, and issue a bash –version command I am seeing the following [email protected]:/myapp# bash –version GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There ..
I have a major problem and will do my best to be short in the explanation. I am running a cronjob on an endpoint and would like to containerize that process. The endpoint needs to have some environments variables set and obviously a TOKEN authentication which is basically the login before I can curl POST ..
I build an image that dumps some data files into a volume, and I would like to know if this build is successful. To do so, I check whether the content of the volume is as expected (I do not care about the actual content inside each file): docker run –rm -w /volume –entrypoint bash ..
I have a situation where I use a Dockerfile for bitcoin core v0.21.0. I use multiple RUN commands and they all execute as expected when building the container. Since v0.21.0 a wallet needs to be created, as it would not automatically creates itself with prior versions. I use the following RUN commands to startup the ..
Although this is likely not a Docker issue, for completeness: I have two Docker containers inside a stack. One is a PostgreSQL database instance, containing an input table, a parser function, and a table for persisting the data. The other is an Ubuntu-based worker. It contains a bash script called via crontab every 5 minutes ..
i followed the example here and made wait_for script (tested and its working) : #!/bin/bash image_name="$1" counter=1 until docker container ls –filter "name=$image_name" –filter "status=running" | grep healthy1; do >&2 echo "db is unavailable – sleeping" sleep 5 ((counter=counter+1)) echo "$counter" if [[ "$counter" -eq 20 ]] ;then echo "exit" exit 1; fi done now ..
I am trying to do a security scan using trivy I am using this bash code to scan all ECR images for e in $(aws ecr describe-repositories | jq ‘. | . | .repositoryUri’) ; do (trivy i $e) ; done The PB is that i have this error failed to initialize options: invalid image: ..
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 ..