Questions tagged [docker-entrypoint]
180 questions
0
votes
0 answers
Delete a file before starting a docker container
I'm using this Graphite Docker Image and it is using an entrypoint called "/entrypoint" and I think no additional command: https://hub.docker.com/r/graphiteapp/graphite-statsd/dockerfile
Now my goal is to delete a specific file everytime when the…

echomike
- 1
0
votes
0 answers
Why docker container exit when ENTRYPOINT ["bash"]?
I'm setting up jboss/keycloak container. So i need to do many quick checks (SSL certs, jdbc drivers ....) using shell commands inside it. Originaly the container starts very slowly as it runs a heavy SSO system. So I try to replace its default…

alexey2baranov
- 414
- 5
- 15
0
votes
1 answer
Can't find binary when using ENTRYPOINT on Dockerfile
I am playing around with docker and this simple image
FROM golang:1.13.4-stretch
ENTRYPOINT ["/bin/bash"]
And when I try to run docker build -t test . && docker run -it --rm test "go version" I get the error /bin/bash: go version: No such file or…

Ricardo
- 3
- 1
0
votes
1 answer
Mount docker-entrypoint.sh as bind volume
I have a docker image that I want to use and reuse when it's updated. I want to avoid making any changes to the image itself to semi-automate the process of pulling the latest image and deploying containers based on it without having to jump…

wedwo
- 338
- 3
- 11
0
votes
1 answer
Docker entrypoint.sh for self-updating programs
I want to run a (java) application in a docker container. This application has an update functionality. This is run automatically on startup and can be triggered manually from the (web) GUI. The update downloads the new files, then runs the new…

darkdragon
- 392
- 5
- 13
0
votes
1 answer
How to access entrypoint.sh values in my docker-compose file?
How do I access entrypoint.sh values in docker-compose file. I have declared all the values in entrypoint.sh as shown below. I need to access those in my docker-compose file
I have used docker-volumes to copy the entrypoint.sh script to…

jeril
- 1,109
- 2
- 17
- 35
0
votes
3 answers
Pass ENV var through 'docker run -e MY_VAR=value' to entrypoint.sh?
I am trying to pass ENV vars at runtime to my docker container's startup file (entrypoint.sh) through the dockerfile. The ENV vars come from a key vault in an azure devops pipeline.
I can't seem to pass in ENV vars with a simple docker run -e…

snejame
- 602
- 3
- 9
- 19
0
votes
1 answer
Mongo Express server listening at http://0.0.0.0:8081
version: "3.3"
services:
mongodb:
image: mongo:latest
container_name: "mongo"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
-…

choopau
- 2,209
- 5
- 21
- 28
0
votes
1 answer
How to manage files from dockerfile
I have a project in docker in which I have been struggling to generate some files from the dockerfile o docker-compose files.
I have a dockerized Django project with the following structure.
assets/
app/
db/
.gitignore (ignoring all files of the…

Jorge
- 333
- 1
- 5
- 17
0
votes
1 answer
dockerfile cant find entrypoint.sh
My filesystem:
Dockerfile
entrypoint.sh
package.json
/shared_volume/
Dockerfile
FROM node:8
# Create and define the node_modules's cache directory.
RUN mkdir /usr/src/cache
WORKDIR /usr/src/cache
COPY . .
RUN npm install
# Create and define…

Steve Tomlin
- 3,391
- 3
- 31
- 63
0
votes
1 answer
Docker exec command in entrypoint script fails
Following the suggestion on Execute a script before CMD (I needed to clear out a temp dir before a container is re-launched, to fix a bug), I modified my docker file from using a CMD, to entrypoint as follows:
ENTRYPOINT ["/app/entrypoint.sh",…

Carmageddon
- 2,627
- 4
- 36
- 56
0
votes
0 answers
How can I run script automatically after Docker container startup without altering main process of container
I have a Docker container which runs a web service. After the container process is started, I need to run a single command. How can I do this automatically, either by using Docker Compose or Docker?
I'm looking for a solution that does not require…

Magnus
- 589
- 8
- 26
0
votes
2 answers
Replacing postgresql.conf in a docker container
I am pulling the postgres:12.0-alpine docker image to build my database. My intention is to replace the postgresql.conf file in the container to reflect the changes I want (changing data directory, modify backup options etc). I am trying with the…

neoceph
- 75
- 11
0
votes
1 answer
ENTRYPOINT Script Variables
I am looking at assigning variables to an entry point script at runtime. I am working on dockerizing one of our internal applications. In my ENTRYPOINT script I have defined some logic to create a database.php file which will include the DB Username…

F12
- 188
- 3
0
votes
1 answer
Issue Running an Initialization Script with Nginx Docker Container
I am creating a Nginx docker image that I'll be using as a reverse proxy component in ECS/Fargate in AWS. I'm using the official Nginx image as the base image (1.17.5).
When the container starts I'm trying to run a bash script from an ENTRYPOINT to…

KSS
- 821
- 3
- 10
- 26