Check this post: https://bigdata-etl.com/permission-denied-while-trying-to-connect-docker/