docker-entrypoint Questions

5

Solved

I try to setup a Docker with both entrypoint and cmd. FROM debian:stretch RUN apt-get update && \ apt install gnupg ca-certificates -y RUN echo "deb http://repo.aptly.info/ squeeze ma...
Matlick asked 5/12, 2017 at 8:6

20

Solved

In Dockerfiles there are two commands that look similar to me: CMD and ENTRYPOINT. But I guess that there is a (subtle?) difference between them - otherwise it would not make any sense to have two ...
Anglomania asked 4/2, 2014 at 13:4

1

Solved

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...
Dampen asked 19/5, 2023 at 18:38

4

Solved

I am trying using Docker using Dockerfile. My Dockerfile as follows, where I am using debian linux system. FROM debian:jessie ENV DEBIAN_FRONTEND noninteractive ARG AIRFLOW_VERSION=1.7.1.3 EN...
Highball asked 21/6, 2017 at 23:20

3

Solved

Say I have this in a Dockerfile: ARG FOO=1 ENTRYPOINT ["docker.r2g", "run"] where I build the above with: docker build -t "$tag" --build-arg FOO="$(date +%s)" . is there a way to do something...

2

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...
Hunkers asked 10/5, 2022 at 1:55

3

Solved

I want add shell or bash to my image to execute installation command. I have copied the /bin/bash on my VM on to my image on Dockerfile: COPY /bin/bash /bin/ But when I execute the docker comm...
Fisher asked 5/4, 2020 at 8:25

3

I am currently trying to deal with a deployment to a kubernetes cluster. The deployment keeps failing with the response Error response from daemon: oci runtime error: container_linux.go:247: sta...
Aureus asked 13/8, 2019 at 16:34

3

Solved

I am creating a simple image with the following Dockerfile FROM docker:latest COPY docker-entrypoint.sh /usr/local/bin ENTRYPOINT ['docker-entrypoint.sh'] Inside my container: / # ls -al $(wh...
Gamal asked 26/7, 2018 at 7:41

1

Solved

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 th...

6

I have a Spring Boot application which uses profiles to configure in different environments. I want to pass this profile information as a parameter to my docker run command. How do I go about doing...
Culet asked 29/6, 2019 at 1:3

2

I am unable to switch user to a non-root user from the entry point script. The User directive to change the user in Dockerfile works, but I am not able to change permissions using chmod. To overcom...

0

I'm configuring an entrypoint to be executed after the container is started: COPY entrypoint.sh /entrypoint.sh RUN ["chmod", "+x", "/entrypoint.sh"] ENTRYPOINT exec /entrypoint.sh However, I'm ...
Rocambole asked 13/3, 2020 at 8:24

1

Solved

When I build my Debian image from docker-compose, with the command $ docker-compose -f docker-compose-dev.yml build web, like so: docker-compose-fev.yml services: web: build: context: ./se...
Nickola asked 14/1, 2020 at 2:29

2

Solved

I'm trying to run a UWSGI server from a Docker container. I've had success, but I'm hitting a wrinkle in that my entrypoint script will still be running as root with PID 1 after container startup, ...
Nanceynanchang asked 3/1, 2020 at 22:16

3

Solved

There is no such file by name entrypoint.sh in my workspace. But below instruction in docker-compose.yml is referring it: builder: build: ../../ dockerfile: docker/dev/Dockerfile volumes: - ...

1

Solved

What is the right way for running multiple commands in one action? For example: I want to run a python script as action. Before running this script I need to install the requirements.txt. I can ...
Suffice asked 23/6, 2019 at 17:49

1

That's a question for my pure curiousity: I have to personalize a Docker Image, in particular this is an extract of my dockerfile: ARG DEFAULT_PHP_VERSION FROM php:${DEFAULT_PHP_VERSION:+${DEFAUL...
Ossian asked 14/11, 2018 at 10:54

2

Solved

I modified the docker-compose.yml file as given on https://hub.docker.com/_/solr/ by adding a volumes configuration and a change in entrypoint. The modified file is as given: version: '3' services...
Pompey asked 20/7, 2017 at 10:5

1

Solved

I need to run a [Windows] Docker container as an executable, running a rather involved PowerShell script (invoking Java and .NET applications) and exiting. Docker documentation suggests using ENTRY...
Trihedral asked 16/4, 2018 at 7:4
1

© 2022 - 2024 — McMap. All rights reserved.