Skip to content
Advertisement

Tag: docker

run multiple commands in docker after container start

how can I run /bin/run1.sh and /bin/run2.sh after the container startup! also, if you can tell me how can I send the logs of /bin/run1.sh and /bin/run2.sh to container logs!! Docker file entrypoint.sh run1.sh run2.sh Answer You can change ENTRYPOINT [“entrypoint.sh”] to ENTRYPOINT [“entrypoint.sh”, “run1.sh”, “run2.sh”] which will run your custom bash scripts you also need to create the log.txt

how to mount a local volume for my docker?

i am newbie to the Linux and docker. I am using the below command to run the docker: where; /home/pyman/PEYMAN is my local directory and 21bbc6c8f7ed is the image ID. after running this command, the workspace root changes to root@0ce2ee24bac0:/workspace# then I type jupyter notebook and run it, and it provides two links which only the second link opens the

Dockerfile build image error: Distribution contains no modules or packages for namespace package

I’m trying to build a docker image of a python project. My project has one dependency package, “my_package” which needs to be install first. It’s a namespace package. I’m having this error when building docker image of this python project. I can pretty much install everything with RUN pip install XYZ inside Dockerfile but I’m not sure what’s the proper

Installing libc6 2.33 on debian

I would like to install libc6 2.33 onto a debian docker container for security patch reasons. I can see here that it has been released, and also it is noted here that 2.33 is available. Is there any easy way to get this installed onto a debian docker container? Is there a hard way to get this installed onto a

ASP.NET Docker UserSecrets location

I have created an ASP.NET application that connects to microsoft sql database and needs a password for that. When running the application under Windows it takes the password from secrets.json file located in C:Users<user>AppDataRoamingMicrosoftUserSecrets<UserSecretsId> When running under Docker I am unable to find out where I should put the secrets.json file. I tried /root/.microsoft/usersecrets/ as it seemed to work for

docker-entrypoint exec nginx not found

I’m not sure what I’m doing is correct so fix me if I’m mistaken. This is my dockerfile: I’m trying to add rtmp module to my nginx. I’m trying to run the image with the command below: This is what I received: What is that /docker-entrypoint.sh: 38: exec: nginx: not found? How do I fix it? Answer There is already

Docker awslogs gives error NoCredentialProviders

Problem I’m trying to send docker logs to Aws Cloudwatch using my on premise server but it keeps failing on authentication. I’ve spent tons of hours searching through documentation and tutorials – and yet it does not work. Approach I’ve installed AWS-cli and configured it, so ~/.aws/config is filled with my credentials. I’ve also set temporarily the session-variables just to

Advertisement