Category : bash

It worked. #!/usr/bin/env bash set -x docker exec -it pure-ftpd ftp localhost printenv It failed, because of "the input device is not a TTY". #!/usr/bin/env bash set -x { echo "docker exec -it pure-ftpd ftp localhost" } | { bash printenv } And environment variables of two scripts are same. Can someone tell me what ..

Read more

I have Dockerfile FROM ubuntu:20.04 RUN apt-get update && apt-get install -y software-properties-common curl gnupg2 && curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add – && apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" && apt-get update && apt-get install -y vault && setcap cap_ipc_lock= /usr/bin/vault COPY run.sh ./ CMD ./run.sh And my run.sh file #!/bin/bash VAULT_RETRIES=5 echo ..

Read more

I am using a tool (gatk) distributed as a docker image and try to use its commands in a shell script. I run the docker in detached mode. sudo docker run –name my_container -d -v ~/test:/gatk/data -it broadinstitute/gatk:4.1.9.0 Then I run the commands from shell script #!/bin/bash docker exec my_container gatk command1 wait docker exec ..

Read more