How to list docker tags with date?
I need a list of all repository tags for a remote Docker registry, along with their date = the date the image tag was pushed. Or at least the tags sorted according when they were created (without the date, but…
I need a list of all repository tags for a remote Docker registry, along with their date = the date the image tag was pushed. Or at least the tags sorted according when they were created (without the date, but…
I want to automate the installation of nginx web service in such a way that if nginx is already present it will get installed at other location ex: /usr/local/nginx. #!/bin/bash echo "Beginning installation of nginx web server" if ! which…
I am confused with this behavior, I have the following script: backup.sh #!/bin/bash -x set -e if [[ $# -eq 0 ]] ; then echo 'No arguments passed' exit 1 fi # Get the arguments for ARGUMENT in "$@"; do…
Below is my docker enterypoint.sh file code #!/bin/bash set -e python3 test1.py gunicorn -b 0.0.0.0:8000 "app:app" --workers=1 --threads=10 --timeout=3600 node /home/test2.js I want to run test2.js nodejs app after gunicorn service starts because test2.js required to connect with localhost:8000. Please…
I want to execute a docker command on a remote server. The problem is I don't know to escape multiple quotes. ret=$(ssh root@server "docker exec nginx bash -c 'cat /etc/nginx/nginx.conf | grep 'ServerName' | cut -d '|' -f1'") I get…
I have 4 debian installer : abc.deb jkl.deb pqr.deb xyz.deb I want to install jkl and xyz first, and then I want to install abc.deb and pqr.deb. So the sequence/order the .deb files should be installed should be : jkl.deb…
I want to replace 2 same words in file(app.properties) with 2 different words using sed command. Example: mysql.host=<<CHANGE_ME>> mysql.username=testuser mysql.port=3306 mysql.db.password=<<CHANGE_ME>> required output will be mysql.host=localhost mysql.username=testuser mysql.port=3306 mysql.db.password=password123 I tried below command: sed -e "s/<<CHANGE_ME>>/localhost/1" -e "s/<<CHANGE_ME>>/password123/2" app.properties >…
docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f56084659b2a nginx:alpine "/docker-entrypoint.…" 35 seconds ago Up 33 seconds 0.0.0.0:3456->3456/tcp, 0.0.0.0:38080->80/tcp xenodochial_perlman what is the cmd to actually count num of ports from PORTS column in 1 line?
I'm trying to write a bash script that will download the contents of a URL (not recursive) and then analyze the file that was downloaded. If the downloaded file is a text file (i.e index.html) I want to know the…
i am trying to create a condition statement that checks if the grep found if a package is installed. if it is true , then the package should not be installed , and if it is false , then the…