Dockerfile for Mono 5, .Net Core 2 and Monodevelop 7
$ sudo docker build \
--build-arg HTTP_PROXY="<host>:<port>" \
--build-arg HTTPS_PROXY="<host>:<port>" \
-t armandob/monodevelop-docker .
NB: do not forget the point at the end
$ sudo docker run \
--name monodevelop-docker-container \
--net=host \
-it --rm \
-e "DISPLAY=$DISPLAY" \
-e "HTTP_PROXY=<host>:<port>" \
-e "HTTPS_PROXY=<host>:<port>" \
-u $(id -u) \
-v /tmp:/tmp \
-v /home:/home:ro \
-v /home/$USER:/home/$USER:rw \
-v /etc/group:/etc/group:ro \
-v /etc/passwd:/etc/passwd:ro \
-v /etc/shadow:/etc/shadow:ro \
-v /etc/sudoers.d:/etc/sudoers.d:ro \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
armandob/monodevelop-docker
to add a single host to ip mapping use --add-host=<host>:<ip_address>
es: --add-host=addins.monodevelop.com:40.123.47.58
to share other folders with docker container use -v <host folder path>:<docker folder path>
es: to share /opt folder, add -v /opt:/opt
$ sudo docker exec -it monodevelop-docker-container lxappearance