Skip to content

Tag: docker

Docker multi serivces in a single container

is it a good practice to create one dockerfile with all needed container , ex : Answer This is actually a bad idea. The principle of containers is one service per one container. A container is really just a process. You might run 50 different containers on a machine, with very little overhead, and still gain …

How to install R library “ggpubr” in a Docker image?

I tried to install the R library ggpubr in a docker image. I pulled the r-base:3.6.3 and the following is my Dockerfile: and here is my Rinstall_packages.R file: each time I got the output like this: I tried to install the library in batch mode: It works. However, after I exited the bash, I still can not use …

Mount seeded volume on linux host

I’d like to create a Database image and seed it with some initial data. This seems to work fine, since I’m able to create a container with a volume managed by docker. However, when I try to mount the volume to a directory on my linux host machine, it is created empty instead of seeded. After sever…

How to run jar files sequentially from a shell script

I am trying to run two java application one after other in my docker container. In my dockerfile i have specified invoker.sh as the entry point. ENTRYPOINT [“sh”, “/opt/invoker.sh”] Then i use this script to run two jar files. but this does not work. It gives Error: Unable to access ja…