194 questions
0
votes
0
answers
23
views
How to use Dev Container service's Docker logs in Visual Studio Code Output tab?
I have a setup that has more or less the following:
devcontainer.json based on Docker Compose:
{
"name": "Frames API backend",
"dockerComposeFile": [
&...
1
vote
1
answer
246
views
Running Ollama as a k8s STS with external script as entrypoint to load models
I manage to run Ollama as a k8s STS. I am using it for Python Langchain LLM/RAG application. However the following Dockerfile ENTRYPOINT script which tries to pull a list of images exported as MODELS ...
0
votes
0
answers
54
views
Docker entrypoint curl api returns the same response all the time
I would request your kind assistance about this weird issue.
So basically I have a docker image, that starts with an entrypoint, which starts a loop to check an api with curl like this:
...
0
votes
0
answers
101
views
How to run cronjob inside a distroless container?
I am trying to add a cronjob inside a distroless container that is running the application. It is either giving error or not running correctly. How can get this working as I want to create a cronjob ...
-1
votes
1
answer
181
views
Docker image fails to locate entrypoint.sh script [duplicate]
I'm trying to build a custom Docker image using saucelabs/sauce-connect:5.2.0 as the base. I want to include a custom entrypoint.sh script that prints a message and then starts Sauce Connect with the ...
1
vote
1
answer
44
views
What is the exit condition for a Docker container regarding main process and child processes?
A Docker container running a (Windows) image will exit when its entrypoint (main) process exits. However what if the main process has started other processes before its own exit? Will the container ...
0
votes
1
answer
149
views
Is it "bad" to install a system package in a docker entryPoint script?
I've got an AWS ECS service that includes several containers that are nearly identical. I've initially built this with a dockerfile for each image, and it works fine but the builds are really slow, ...
1
vote
2
answers
667
views
How to properly set up entrypoint and cmd when dockerizing a bash script?
I have a bash script that I want to dockerize but I'm having issues with both the ENTRYPOINT and CMD directives.
Here's my Dockerfile:
FROM ubuntu:22.04
# NOTE: these can be overridden with `--build-...
1
vote
1
answer
944
views
Unable to fix "Error: fork/exec /lambda-entrypoint.sh: exec format error"
I have read extensively about this mysterious lambda-entrypoint.sh. Apparently it is part of the lambda base image and neeeds to be referenced/invoked in the Dockerfile ?
But I can not find a working ...
0
votes
1
answer
177
views
Unable to quit docker run with CTRL+C using exec format of ENTRYPOINT and CMD
In my Dockerfile, I was previously using the following CMD so that the Apache server would launch and since it was running in the foreground, the container would remain running and I could kill it ...
0
votes
1
answer
239
views
How i can set swarm environment variables in the kafka-ui docker image
I took the Kafka UI image (provectuslabs/kafka-ui:v0.7.1):
https://hub.docker.com/layers/provectuslabs/kafka-ui/master/images/sha256-633606ca07677d1c4b9405c5df1b6f0087aa75b36528a17eed142d06f65d0881?...
4
votes
1
answer
2k
views
How to set up a devcontainer together with a Docker entrypoint script?
Background
I have a git repository with a Dockerfile inside as well as entrypoint.sh script.
It is set to build a development container with a non-root user, see a (minimal, simplified) example below:
...
0
votes
1
answer
291
views
How i can embed my script into the image kafka-ui
I took the Kafka UI image (provectuslabs/kafka-ui:v0.7.1):
https://hub.docker.com/layers/provectuslabs/kafka-ui/master/images/sha256-633606ca07677d1c4b9405c5df1b6f0087aa75b36528a17eed142d06f65d0881?...
2
votes
0
answers
232
views
SIGTERM not working against child process spawned by entrypoint
I'm trying to run an entrypoint script where it spawns a couple child processes (services), and I want docker stop or docker restart to propagate the SIGTERM to the children. However I cannot seem to ...
0
votes
2
answers
430
views
i am trying to build docker image for wso2 api manager 4.2.0
hello guys i finished working on my wso2 api manager configs and now i am trying to build a docker images i followed docs and created zip file of wso2 folder and copied the entrypoint and docker file ...
0
votes
1
answer
156
views
Why I cannot create a db in my entrypoint script for mariadb?
I made the following script:
#!/bin/bash
set -e
# Define the name of the additional database
ADDITIONAL_DB_NAME="test_${MYSQL_DATABASE}"
# Perform the initialization of the additional ...
0
votes
1
answer
240
views
Combine 2 services in docker-compose file
I am working with a docker-compose file from freqtrade project. I made a docker-compose file with Dockerfile dependency.
docker-compose.yml :
---
version: '3'
services:
freqtrade:
# image: ...
2
votes
1
answer
274
views
What is SPARK_DRIVER_BIND_ADDRESS in the docker entrypoint.sh for the spark image
Most entrypoint.sh files that are used to run the spark docker image contains a variable called SPARK_DRIVER_BIND_ADDRESS, for example this entrypoint.sh
I'm not able to find what this property is ...
3
votes
1
answer
4k
views
Why my docker Fail "exec /usr/src/app/entrypoint.sh: no such file or directory"?
I'm trying to run container in docker with windows 11. When I'm running docker compose up web server, it shows exec ./entrypoint.sh: no such file or directory, but it does exist in folder, and it also ...
1
vote
1
answer
2k
views
Docker Entrypoint script not taking any arguments in?
Whilst developing my Dockerfile, I ran into an issue with the Entrypoint instruction script; it's not taking my docker run arguments in.
Here is an example of what I tried, given:
COPY ./entrypoint.sh ...
1
vote
0
answers
58
views
How use mongodb module inside a js entrypoint file of a docker container
I want to insert a document (with fields that need to be explicitly encrypted) in the collection when initializing the database inside the js entrypoint file. I am successfully creating collections ...
1
vote
0
answers
450
views
Error while running the Flink run command and port-forward
I have set up Apache Flink on an EKS Kubernetes cluster with one Job Manager and two Task Managers.
flink configuration configmap.yaml:
apiVersion: v1
kind: ConfigMap
metadata:
name:
namespace: &...
1
vote
1
answer
1k
views
How to dynamically set environment variables in a docker-entrypoint.sh?
I have a go binary that will pull environment variables from AWS SSM Param, when the script runs, it prints out lines like this:
export FOO="BAR"
export BAZ="QUX"
This works well ...
0
votes
1
answer
505
views
Make docker exit on any command failure in docker-entrypoint.sh
I'm trying to load AWS SSM Parameters in my docker-entrypoint.sh I'm testing the failure case and it continues to the CMD if it fails.
#!/bin/bash
set -eo pipefail
ssm_available() {
if [ -z ${...
0
votes
0
answers
43
views
Python app passing config file trhough Docker [duplicate]
I created a stand-alone application with Python3 that accepts a file as input, however I am not able to let it work properly.
Once installed on my system I run the application as myapp -accounts ./...
7
votes
1
answer
12k
views
How can I troubleshoot 'required file not found' error when running Postgres docker-compose with initialization scripts?
I'm tryng to use a docker-compose file to mount a posgres container and run two scripts after that. i"m using 'docker-entrypoint-initdb.d' for that.
Here is my docker-compose file:
version: '3.4'
...
1
vote
1
answer
2k
views
Docker - Python Django error entrypoint.sh: no such file or directory
I follow a tutorial about DRF backend and Docker use for test api.
Link tutorial: https://www.youtube.com/watch?v=tujhGdn1EMI
They were fully setup docker-compose and dockerfile. I am following but ...
0
votes
0
answers
264
views
podman ENTRYPOINT/CMD behaviour issues on Azure
I am using podman to run a model on Azure. I need to run the model many times so i am sending these jobs to additional nodes that are managed by SLURM.
The podman command i use is:
podman run --rm --...
0
votes
0
answers
144
views
I can't launch my docker image via my container (env: can't execute 'python3) (exec /opt/entrypoint.sh: no such file or directory)
I can't run my docker image in my container in Docker-Desktop on Windows: docker image - container
Here is my file entrypoint.sh :
#!/bin/sh
echo $0
set -e
# Global variables
PYTHONPATH="${...
0
votes
1
answer
607
views
Getting blank output while CMD & ENTRYPOINT instructions together
My dockerfile looks as below:
FROM ubuntu
ENTRYPOINT echo
CMD ["helloworld"]
The container built from the above dockerfile image is giving a blank output.
[root@dockerhost dproj]# docker ...
0
votes
2
answers
2k
views
Docker is adding single quotes to ENTERYPOINT argument
I am creating a Dockerfile that needs to source a script before a shell is run.
ENTRYPOINT ["/bin/bash", "-rcfile","<(echo '. ./mydir/scripttosource.sh')"]
However, ...
0
votes
0
answers
175
views
/bin/bash: 1: ./entrypoint.sh: not found
In Debian GNU/Linux 11 (bullseye) based Dockerfile, I tried to use CMD to run an entry point command:
#EDIT
WORKDIR "/tmp"
USER root
COPY ./entrypoint.sh /tmp/rails/entrypoint.sh
RUN ...
-1
votes
1
answer
2k
views
Dockerfile: ENTRYPOINT doesn't expand ARG/ENV variable
I'm using CentOS.7 in a container (because I have to) and need to install some RedHat Software Collection packages to up-version a couple of tools. This involves running source scl_source enable <...
1
vote
1
answer
1k
views
Docker Compose - Entrypoint permission error (mariadb)
I have tried many things and searched for this it, but nobody seems to have my exact problem.
I installed docker on my Ubuntu 20.04 LTS using these steps and the test run docker run hello-world works ...
-1
votes
1
answer
1k
views
How does entrypoint.sh file run in a Docker?
I'm working with a debian base image that comes with an entrypoint.sh file stored in /bin by default.
If I don't define ENTRYPOINT in a Dockerfile, and I do a docker run, I see that entrypoint.sh runs ...
0
votes
1
answer
1k
views
Docker : Run apache with www-data user but execute script as root at launch
I want to secure a Docker image based on php-apache.
My Dockerfile uses a bash script as entrypoint were the minimum rights are given to www-data user to run apache. The rights are given with setfacl, ...
1
vote
0
answers
969
views
How to run a script in docker-compose start process without overriding ENTRYPOINT or CMD of Docker Image?
I want to start my docker container with a docker-compose command.
The underlying docker image CMD should just be executed regularly, and I want to append my script at some point.
When reading about ...
0
votes
1
answer
170
views
Docker entrypoint returns different results from running script manually
I have a container that runs an SQL query and then sends an email based on the results.
#!/bin/bash
AMOUNT=$(mysql -h foo -u foo -pfoo foo < order-check.sql | sed 's/amount//'| cut -f1 -d ".&...
0
votes
0
answers
172
views
Overriding entrypoint with new executable file fails in docker
I am trying to override the entrypoint of an image with a new executable as follows
Everything runs from github actions step FWIW
- name: run docker
run: |
ls -l
...
2
votes
3
answers
3k
views
Εxecute commands with args and override entrypoint on docker run
I am trying to override the entrypoint in a docker image with a script execution that accepts arguments, and it fails as follows
▶ docker run --entrypoint "/bin/sh -c 'my-script.sh arg1 arg2'&...
0
votes
3
answers
1k
views
How to execute some task in background within a docker container
I'm trying to perform some user operation(change admin-user), after Neo4j container boots up. But my background script doesn't wait for the neo4j to come up and dies before Neo4j comes online.
...
0
votes
1
answer
919
views
Is it possible to use shell processing to parse environment variables while specifying a non-shell entrypoint in docker?
What I am trying to achieve
Background information
I have a docker container set up with environmental variables pre-defined by Kubernetes and used as configuration for the docker container.
In the ...
0
votes
1
answer
2k
views
docker entrypoint running in loop
I am new to Docker and trying to adapt a setup from Symfony Docker to another app that uses a different Dockerfile.
I use a docker-entrypoint to run database migrations which, of course, require the ...
2
votes
1
answer
10k
views
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied
I have three files
#!/bin/sh
# const variables
BUCKET_NAME=gs://rasa-models-staging
PROJECT_NAME=stage
KEY_FILE=./stage.json
# install dependencies
pip install google-cloud-storage
# Login to ...
0
votes
1
answer
109
views
Container date won't update in entrypoint script
I built a container using the docker-compose script below:
services:
client:
image: alpine
environment:
- BACKUP_ENABLED=1
- BACKUP_INTERVAL=60
- BACKUP_PATH=/data
- ...
0
votes
1
answer
841
views
How do I pass an env/build arg from my docker-compose script to a Dockerfile ENTRYPOINT command? [duplicate]
I want to pass an env/build var to my Dockerfile for use in its entryxoint and thought I could do it from the docker-compose file like so
web:
restart: "no"
build:
context: .....
0
votes
2
answers
441
views
Run Shell script in docker using Environment variable
I am running a docker file to execute a debezium service as entrypoint.
It works fine and executes debezium service when I use the exact file path as parameter to Entrypoint command in my docker file
...
0
votes
2
answers
2k
views
How do I get a docker container to automatically execute a bash script once it starts up?
I'm stuck trying to achieve the objective described in the title. Tried various options last of which is found in this article. Currently my Dockerfile is as follows:
FROM ubuntu:18.04
EXPOSE 8081
CMD ...
2
votes
0
answers
34
views
Kafka consumer script hangs when executed as a docker entrypoint [duplicate]
I am trying to connect a python kafka consumer to a kafka broker using the following script:
import kafka
from configuration import config
if __name__ == "__main__":
print('Start')
...
12
votes
2
answers
48k
views
docker run without entry point [closed]
Could we have a {docker run} command without a entry point?
As far as I can see, there must be an entry point (if not specified, it should be defaulted to "bash" at most cases). Otherwise, I ...