Docker Perl Sublimetext3 development setup

I am setting up a perl development environment for the first time in a number of years I want to leverage docker and sublime text plus I run on MAC OSX.

I wanted to use Docker to create a dev env that i could share with others on my team.
I like SublimeText and integration with PerlCritic.
I understand about host mounted volumes to allow me to edit locally and save on the docker container.
What I cant work out is how to avoid installing all the perl dependencies on my MAC to enable Sublime to have access to them and allow the sublime perl critic integration to function.

  • Run apache in both host machine and docker container on 80 port
  • Can I Run a dotnet app which is hosted on IIS in a docker container?
  • How to run Docker container from Java project?
  • How to have my docker daemon log print to logfile not to STDOUT?
  • Error while running Wildfly 10.1.0 - Failed to parse configuration and Current event not START_ELEMENT
  • Kubernetes and network control
  • Is it possible to :-

    a) Install the complete perl environment in a docker container (this much i know is true)
    b) Use SublimeText on my MAC such that all the Sublime Plugins continue to work from the dependencies in the container?

    I also understand that Sublime Text has build plugins for perl but from what i understand that occurs at build time not whilst developing – thus still requiring dependencies locally on the MAC.

  • Kubernetes Service External IP not being assigned
  • Bulk Container image pull without “docker pull”
  • Configuring bitbucket pipelines with Docker to connect to AWS
  • Docker CMD with envsubst and tee
  • Build docker image from rhel6.5 image
  • Trying to build openface docker container
  • One Solution collect form web for “Docker Perl Sublimetext3 development setup”

    I would think that you could have your perl install on a mounted docker volume (as you suggested)

    Then in the container do

    perl -V

    which amongst other things will give you


    From your Mac you can then use the PERL5LIB environment to add these to the search path. Ideally these will all be in your mount point. The lib64 sections will not work as these are compiled modules.

    export PERL5LIB=/my/docker/mount/perl/lib:/my/docker/mount/lib2

    You will probably only need the share sections

    I would also match the perl version on the Mac to the docker version by using perlbrew. This is also available in perl -V

    Just as a general rule, never mess with the Mac Perl standard install as it causes many problems as the OS uses it for things

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.