94
Docker Ubuntu Example
Docker also allows us to install any operating system in isolated container. Here, in the following example, we are installing Ubuntu in Docker.
- Create a directory to organize files.
- Change the directory
- Create Dockerfile
- Create a Docker Image
- Run Docker Image
- See Running Container
- Enter into Docker Container
- See Ubuntu OS Directory Structure
- Executing Commands
In the file, we are using only one instruction that will pull the Ubuntu image from Docker hub.
// Dockerfile
The image, we have created is run by the following command.
This command is used to see the all running Docker container.
We can enter into the running container and can check the files and application inside the container.
After entering into
Next TopicDocker Push Repository