Installation.
- Begin with updating your system packages and docker dependencies.
- Add docker stable repository for centos within your system
- Once docker repository is enabled, proceed ahead to install Docker-CE ( Community Edition.
- Now docker-ce has been installed, lets start the docker daemon and enable it on boot.
- To verify the status of docker, run the below command.
- In case, if you want to check your installed docker version.
Run Docker commands without sudo
By default managing
Docker requires administrator privileges. If you want to run Docker
commands as a non-root user without adding sudo within yoir command you
need to add your user to the docker group which is created during the
installation of the Docker CE package. Add your user to docker group by
below command.
Logout- Login to reflect the changes.
No comments:
Post a Comment