onestoplkak.blogg.se

Using docker on mac
Using docker on mac






In conclusion, docker containers really helps us to have some form of environment that we can quickly launch and destroy.

using docker on mac

If something doesn’t work out, we can destroy this container and restart from step 3 to launch a new container. Feel free to do the things things that you want to try. docker exec -it condescending bashĪfter this step, you have entered into the ubuntu operating system. Take note that the command needs to contain the name of the container. To go into the bash environment of the container, we run the below command. You should see some information like the ones below CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESįebc92bf017f ubuntu:bionic "/bin/bash" 8 seconds ago Up 7 seconds condescending Go into the container To check that the container is running and get the information, we run the below command docker ps

using docker on mac

To start a container running, we run the below command docker run ubuntu:bionic docker pull ubuntu:bionic Run Ubuntu on Mac in container

using docker on mac

In this tutorial, we will install the bionic version which is ubuntu 18.04. For different versions, you can check out at this link. There are different version of ubuntu docker image you can choose.








Using docker on mac