Tag : bash

I’ve been trying to use expect, and it doesn’t seem to work outside a tty in a particular context It stems from trying to invoke the makepkg command non-interactively to build a package $makepkg -Ccfi –noconfirm ==> Installing package test-delta with pacman -U… We trust you have received the usual lecture from the local .. Read more I have a Dockerfile where I am copying in a shell script called myscript.sh that I want to run each time a container made from the image starts. The script copies in fine but will not execute when the container starts. Once the container starts, I can interactively connect and manually run the script with .. Read more I have docker services (postgresql,django,nodejs,etc) in the production. I want to replicate one table from that DB to new docker container without losing other tables, and when someone inserts data to the table which will be replicated , I want that data to be in replicated table too. So what I wanna do is to .. Read more Use-case: copy a file containing some creds from local machine directory to existing and already created Docker container/volume Per the documentation on using docker cp, I constructed my command line statement like this: docker cp mynodered:/Users/<myUserName>/Documents/nodered-volume/creds.json /data/creds.json However, I consistently get an error returned: invalid output path: directory "/data" does not exist Source: Docker.. Read more I am writing a script which will check docker service but I want check services which are inside the docker-compose without getting into it. For ex: we have custom services like tass and inception basically we check it’s status by this command "service tass status" Is there any way to check this services in Docker-compose .. Read more I need to run a bash script using docker that requires some arguments to be passed to it. This is what my dockerfile looks like FROM harisekhon/ubuntu-java:8 ENV BASE_DIR="foobar" ARG FILE_PATH ARG ANOTHER_ARG # ######################## # irrelevant stuff removed # ######################## RUN chmod +x myscript.sh ENTRYPOINT [ "myscript.sh" ] CMD [ "sh", "-c", "${BASE_DIR}", "${FILE_PATH}", .. Read more I’m new to the whole Docker Container topic and currently trying to run multiple python scripts in shell via bash script (cause it seemed to be the easiest thing to do in terms of running multiple python scripts at the same time). Before that I build my Image via the following Dockerfile FROM debian:buster-slim ENV .. Read more I have a base image with bash 4.2 and I’d like to upgrade it to 5.1 I’ve attempted to unzip it and then set the path variable to that folder as such: RUN curl -o /tmp/bash-5.1.tar.gz${BASH_URL}/bash/5.1/bash-5.1.tar.gz && tar -xvf /tmp/bash-5.1.tar.gz -C /usr/local/bin && rm /tmp/bash-5.1.tar.gz ENV PATH=/usr/local/bin/bash-5.1:\$PATH However when I build the image all ..