Step-by-Step:
1. Open the terminal in Ubuntu, then make sure docker is running by typing service docker status, you should see something a message like the image below
2. Type in the following command docker run --name dev -it fedora /bin/bash . The command tells Ubuntu to run docker with the name dev in interactive mode with an emulated terminal using the Fedora image with the bash shell. If there's no local image docker will pull the latest image from Fedora
3. After the command is completed you will running inside the Fedora container, you can tell by the changes in the prompt
5. To get out of the Fedora container just type exit and you will get back to the host system
Posts On Dockers
- Installing Docker On Ubuntu Server
- Installing Docker On CentOS
- Adding Docker Repository Key and Updating Docker To Get The Latest Version
- Docker : Pull The Latest Fedora Image Into A Ubuntu Server
- Docker : Pull The Latest CentOS Image Into A Ubuntu Server
- Docker : Adding Non Root Users To The Docker Group In Ubuntu
- Docker : Adding Non Root Users To The Docker Group In CentOS
- Docker : Command to See What Containers Are Running
No comments:
Post a Comment