Skip to main content

All Questions

Tagged with
0 votes
1 answer
306 views

How to use docker exec to execute a shell script with an argument in a container?

I have a shell script on my host, which is calling another script to run inside the container. Here is a simple case that works fine: host_script.sh #!/bin/sh results=$(docker exec mycontainer "....
teeeeee's user avatar
  • 293
0 votes
1 answer
44 views

How to start a screen session from entrypoint shell script, and make it persist?

I am starting a screen session in my entrypoint shell script in docker, then log the output of screen -list to a file. #!/bin/bash screen -S my_screen -dm bash -c 'cd project && npm run start'...
Z0q's user avatar
  • 631
0 votes
0 answers
514 views

Running apt-get update in Debian Docker container hangs on installing bookworm

This is probably the strangest error I've run into. So I'm running a Wikibase Docker setup on a Windows machine. The Docker containers are all Debian OS. In order to install some packages upon setting ...
user3684314's user avatar
0 votes
0 answers
1k views

Dockerfile - /usr/bin/bash: exec: No such file or directory

I'm just starting out with building containers and have run into this odd issue. The above error comes up when I try to setup apache2 in a container. My ENTRYPOINT and CMD are as follows ENTRYPOINT [&...
nomad-57's user avatar
2 votes
1 answer
862 views

How to run a script without sh prefix inside the container

We are running containers on open shift platform. The application pods are running fine. We able to login to the pod using the below command oc exec -it <podname> -- /bin/bash also tried /bin/...
Malaiselvan's user avatar
0 votes
1 answer
400 views

terminal output is broken in docker compose output

Im facing an issue with how the log in docker compose looks like, seems somehow broken as shown below ==> Emulator is ready : '1' is not completely override the previous output "please wait&...
Amr Kamel's user avatar
  • 121
-1 votes
1 answer
3k views

How to pass shell parameters when running a docker image?

I've implemented a bash script which accepts the following parameters SYNOPSIS run.sh: run.sh [-H|-L|-P profile -D device [-R runtime]] list the fio profiles natively supported by the docker ...
wang larry's user avatar
0 votes
2 answers
2k views

No such file or directory when running binary, though the binary exists

I'm installing minikube as part of below Dockerfile: FROM jenkins/jnlp-agent-alpine RUN curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \ ...
rokpoto.com's user avatar
0 votes
1 answer
1k views

How to invoke a jenkins pipeline B, in between if-else condition of jenkins pipeline A?

jenkins pipeline-A pipeline{ stage('deploy'){ agent { label 'slave' } steps{ script{ if [ "$deployenv" = dev ]; then echo 'restart not required' elif [ ...
dsl's user avatar
  • 9
0 votes
1 answer
427 views

how to restart an application 5 times with delay time 25min, through jenkins pipeline using groovy script

How can I restart an application a total of 5 times with a 25 minute delay between each launch, through a jenkins pipeline using a groovy script? //service update command need to execute.. stage('...
dsl's user avatar
  • 9
0 votes
1 answer
683 views

Shell script refer to another directory when building Dockerfile

I am using MacOS. My project directory structure is like this: myapp/ app.js Dockerfile subapp/ Dockerfile script/ - myshell.sh In myshell.sh , I write shell script to build the ...
user842225's user avatar
0 votes
0 answers
440 views

Using Process Substitution in docker as input <(command)

Recently, I faced some problems in developing bash pipelines with docker. This regards to the use of process substitution [<()] as input for a specific docker command. I know that this is a problem ...
Luis Arge's user avatar
1 vote
1 answer
212 views

startx inconsistent behavior

I have a SSH server that is responsible for running dwm binary through X forwarding, on my client computer, i have a shell script that replaces the dwm binary on /usr/local/bin, inside that script, i ...
henriquehbr's user avatar
0 votes
0 answers
2k views

answer interactive prompt from docker container ran in script (certbot)

So I tried searching far and wide and I can't seem to get what I'm trying to do to work. Essentially I have a script that runs a certbot docker container with the digital ocean plugin. I can run the ...
Arthur's user avatar
  • 1
1 vote
1 answer
4k views

Docker commands failing to run inside bash script

I have a Dockerfile that I'm using to build a runtime environment for some bash scripts, currently it looks like this: FROM debian:buster-slim RUN apt-get update RUN apt-get upgrade RUN apt-get ...
Nick Coad's user avatar
  • 111

15 30 50 per page