Run RPCBind on a docker container with the socket enabled (for port 111)
0
votes
0
answers
57
views
I'm trying to dockerize a rpc application I made using C lang and rpcgen, I have the byte executable and everything, I tried a lot of docker os image like ubuntu 22.04/ debian and so on, the executable run and the rpc service run too but there's no listening to port 111 that can enable me to get the UDP and TCP port numbers so I can connect my external client to it, any solution?
this is the Dockerfile
FROM ubuntu:22.04
WORKDIR /app
COPY . .
RUN apt-get update && \
apt-get install -y rpcbind && \
mkdir -p /run/sendsigs.omit.d && \
chmod +x run.sh
CMD rpcbind && ./run.sh
this is the shell script
#!/bin/sh
./server &
rpcinfo -p
yet I get `rpc-server| No remote programs registered.
rpc-server exited with code 0`
Asked by ALLAOUA Okba
(1 rep)
Apr 19, 2025, 10:01 AM
Last activity: Apr 19, 2025, 10:39 AM
Last activity: Apr 19, 2025, 10:39 AM