Verify that Docker Engine is installed correctly by running the hello-world image
This command downloads a test image and runs it in a container. When the container runs, it prints a message and exits.
Post-installation steps for Linux
The Docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The Docker daemon always runs as the root user.
If you don’t want to preface the docker command with sudo, create a Unix group called docker and add users to it. When the Docker daemon starts, it creates a Unix socket accessible by members of the docker group.
Create the docker group
Add your user to the docker group
Log out and log back in so that your group membership is re-evaluated
Verify that you can run docker commands without sudo
If you get /home/user/.docker/config.json: permission denied
Configure Docker to start on boot
Test the installation
Install Docker Compose
Run this command to download the current stable release of Docker Compose
Please visit Docker website to collect latest version of Docker Compose
If the command docker-compose fails after installation, check your path. You can also create a symbolic link to /usr/bin or any other directory in your path.
Optionally, install command completion for the bash and zsh shell.