skip to Main Content

Docker custom program stop

Look at this c program: #include <stdio.h> #include <unistd.h> #include <signal.h> int stop = 0; void handle_signal(int sig) { stop = 1; } void main() { signal(SIGINT, handle_signal); signal(SIGTERM, handle_signal); while (stop==0) { printf("Hellon"); sleep(1); } } I am compiling…

VIEW QUESTION

Docker Host Not Found

I have two docker containers running, one with a Tomcat, one with an H2 database. To build the containers I use docker compose build with the following compose.yml: services: tomcat: build: tomcat ports: - "8080:8080" networks: - my-network h2: build:…

VIEW QUESTION
Back To Top
Search