How to run docker with user namespace enabled?

As per the documentation, i tried the following command but get error:

sudo docker daemon --userns-remap=default
INFO[0000] previous instance of containerd still alive (2640) 
INFO[0000] User namespaces: ID ranges will be mapped to subuid/subgid ranges of: dockremap:dockremap 
FATA[0000] Error starting daemon: Can't create ID mappings: No subuid ranges found for user "dockremap"

  • How do I run JUnit tests in a Docker container and have the container fail startup when JUnit fails?
  • How to know a process is running under docker
  • Unable to install docker 1.5 on ubuntu 14.04 64bit
  • How best to use docker in this situation
  • Node.js modules not building in Docker
  • docker & Quagga BGP
  • How can I create a docker image from the current system?
  • broken dockerfile : github deploy key no longer copied correctly
  • Connection refused when trying to access SOLR instance running in boot2docker on windows
  • Same IP address for multiple Bluemix Docker containers
  • How to make Secure Gateway Client to resolve the hostname of the destination's host
  • Error installing node.js on google compute engine docker image
  • One Solution collect form web for “How to run docker with user namespace enabled?”

    I got past the above error by creating /etc/subuid and /etc/subguid with following text dockuser:100000:65536 and then starting docker daemon as docker daemon --userns-remap:dockuser

    But now i get another error related to /dev/mqueue permissions when starting containers. Refer this issue for more details:

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