Docker is a container-based software framework for automating the deployment of applications. “Containers” are encapsulated, lightweight, and portable application modules.
Docker was only available on Ubuntu. Nowadays, it is possible to deploy docker on RHEL based systems (e.g. CentOS) and others as well.
Install Docker by installing the docker-io package:
apt-get update apt-get -y install docker.ioLink and fix paths with the following two commands: ln -sf /usr/bin/docker.io /usr/local/bin/docker sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io
Configure Docker to start when the server boots:
update-rc.d docker.io defaults
If you want to enrich your career and become a professional in Docker, then visit Tekslate - a global online training platform: "Docker Training" This course will help you to achieve excellence in this domain.
Download the Fedora Docker image
docker pull ubuntu
-To set up a basic ubuntu container with a bash shell, we just run one command.
-docker run will run a command in a new container, -i attaches stdin and stdout, -t allocates a tty, and we’re using the standard ubuntu container.
docker run -i -t ubuntu /bin/bash
To disconnect from the shell without exiting use the escape sequence Ctrl-p + Ctrl-q.
For an in-depth understanding of Docker click on:
You liked the article?
Like : 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.
Get stories of change makers and innovators from the startup ecosystem in your inbox