Category : linux

I am running a code which opens a raw socket inside a docker container with kubernetes as the orchestrator. Following is my sample code: #include <stdio.h> #include <sys/socket.h> #include <stdlib.h> #include <errno.h> #include <netinet/tcp.h> #include <netinet/ip.h> #include <arpa/inet.h> #include <unistd.h> int main (void) { //Create a raw socket int s = socket (AF_INET, SOCK_RAW, IPPROTO_SCTP); ..

Read more

On a fresh debian 10 server I installed docker-ce engine 20.10.6. Even with a simple alpine instance I can’t make a network connection to outside the container. I followed the steps according to https://docs.docker.com/network/network-tutorial-standalone/ So it should work. But it doesn’t. Can someone give me a clever hint? The steps are the minimum to reproduce ..

Read more

Just curious to understand, with "traditionnal" Linux /dev/null is used to send data in a kind of black hole. With Docker, I can see /dev is mounted as a 64Mb tmpfs folder, isnit? # df -h Filesystem Size Used Avail Use% Mounted on overlay 59G 52G 3.8G 94% / tmpfs 64M 0 64M 0% /dev ..

Read more

just finish installing sql server 2019 alwaysOn on docker container. (references: https://dbtut.com/index.php/2020/06/09/sql-server-2019-alwayson-availability-group-on-docker-containers/ https://www.sqlservercentral.com/articles/sql-server-alwayson-with-docker-containers ). in the above references and others, they are not getting to the "listener" configuration point on docker containers. the question is: how to connect to SQL through listener on DOCKER environment? (how to configure it on docker) thanks Source: Docker..

Read more