FWICT, not directly, but you can still do it.. it's just a little annoying. The method I've used to do this is to write a wrapper script/tool that sets up the docker container the way you expect, passing stdout/etc along, and putting your containers on 127.0.0.1
You might be better off using the docker networking configuration to achieve the isolation you are looking for.