Docker without sudo

  • Add the docker group if it doesn’t already exist:
    sudo groupadd docker
  • Add the connected user “$USER” to the docker group. Change the user name to match your preferred user if you do not want to use your current user:
    sudo gpasswd -a $USER docker
  • Either do a newgrp docker or log out/in to activate the changes to groups.
  • You can use
        docker ps -a

    to check if you can run docker without sudo.

Install Rocket.Chat Docker

First, start an instance of mongo:

docker run --name db -d mongo:3.2 mongod --smallfiles

Then start Rocket.Chat linked to this mongo instance:

docker run --name rocketchat --link db:db -d

This will start a Rocket.Chat instance listening on the default Meteor port of 3000 on the container.
If you’d like to be able to access the instance directly at standard port on the host machine:

docker run --name rocketchat -p 80:3000 --env ROOT_URL=http://localhost --link db:db -d


Then, access it via http://localhost in a browser. Replace localhost in ROOT_URL with your own domain name if you are hosting at your own domain.