Questions tagged [docker-entrypoint]

180 questions
2
votes
1 answer

Docker mount volume directory permissions to non root user using dockerfile

I have a dockerfile with an entrypoint that starts a java app jar in shell process.I have set USER nobody in dockerfile before entrypoint to make sure the entrypoint shell is executed by nobody user and not root. The task definition for the…
Ashley
  • 1,447
  • 3
  • 26
  • 52
2
votes
1 answer

Docker run command to achieve few steps with a single line of command

I am trying to run a docker command for achieving following steps with a single line of command. A) Pulling a docker image, B) Then starting the container, C) Do a volume mount of a directory from host to launched container, D) And then gives scan…
Vizag
  • 375
  • 2
  • 6
  • 22
2
votes
1 answer

Could not find ast-2.3.0 in any of the sources

The Dockerfile is deprecated. Here I am installing bundle install and create a new directory /bundle where the bundle is installed. While running this image as a container, I am mounting the current directory to /code which is the WORKDIR so that…
2
votes
2 answers

Docker multiple inheriting entry_point execution

I have the following Dockerfile: FROM gitlab-registry.foo.ru/project/my_project FROM aerospike/aerospike-server And above the first and second ones have an ENTRYPOINT. As it known, only one ENTRYPOINT will be executed. Does it exist the way to run…
voltento
  • 833
  • 10
  • 26
1
vote
0 answers

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

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 perfect. My docker-compose.yml looks like…
1
vote
3 answers

Ε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'" my-image:latest docker: Error response from daemon: OCI…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
1
vote
1 answer

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 gscloud gcloud auth activate-service-account…
Himanshu Teotia
  • 2,126
  • 1
  • 27
  • 38
1
vote
0 answers

docker-entrypoint-initdb.d vs source for importing a database into a contrainer

I am currently aware of two ways to get an existing MySQL database into a database Docker container. docker-entrypoint-initdb.d and source /dumps/dump.sql. I am new to dockering and would like to know if there are any differences between the two…
Maik Lowrey
  • 15,957
  • 6
  • 40
  • 79
1
vote
1 answer

Why both CMD and entrypoint defined in some images?

I have seen some images that based on the inspect have both CMD and ENTRYPOINT set. What is the idea of this? What use cases are served when both are set?
Jim
  • 3,845
  • 3
  • 22
  • 47
1
vote
1 answer

docker-entrypoint.sh: executable file not found in $PATH

I was able to build a successful image out of the Dockerfile below but I failed to run the image and I get the error below even though I have copied the entrypoint.sh to the right location. Any pointers to fix this would be great. Error: docker:…
Avi
  • 1,453
  • 4
  • 18
  • 43
1
vote
2 answers

Docker/Django - How to make sure that all migrations are completed bofor application start?

at my dockerized Django application I have the following bash function at my docker-entrypoint.sh. This basically only checks if the database is available: function check_mariadb { while ! mysqladmin --user=$MYSQL_USER --password=$MYSQL_PASSWORD…
user16837137
1
vote
1 answer

permission denied in docker entrypoint

I am trying to to run an entrypoint script via docker-compose file. And im getting permission denied error while trying to edit a configuration while. I have tried with root user as well with no luck. Dockerfile FROM centos:7 AS ingestbase RUN mkdir…
14578446
  • 1,044
  • 7
  • 30
  • 50
1
vote
3 answers

Overwrite entrypoint in Dockerfile without using the command "docker run"

I have a problem with overwriting the entrypoint in my Dockerfile. For this (as I know) docker run with --entrypoint option is used, e.g.: docker run --entrypoint "python3 main_script.py DEV" However, in my case I can't use the docker run command…
Brahim
  • 13
  • 1
  • 5
1
vote
1 answer

Change entrypoint of a k8s Pod, but keep the CMD

How to change the Docker ENTRYPOINT in a Kubernetes deployment, without changing also the Docker CMD? In the Pod I would do image: "alpine" entrypoint: "/myentrypoint" but this overwrites either ENTRYPOINT and the CMD from the Dockerfile. The…
Kamafeather
  • 8,663
  • 14
  • 69
  • 99