Use Gnuplot 5 with the following command:
docker run --rm --volume $(pwd):/tmp -w /tmp pavlov99/gnuplot gnuplot your_file.gnu
Use Gnuplot 5 with the following command:
docker run --rm --volume $(pwd):/tmp -w /tmp pavlov99/gnuplot gnuplot your_file.gnu