If you are using macOS, you are supposed to prepare a virtual machine/service to host a real Linux instance, and then control it in the remote.
Currently, there are at least 2 solutions to achieve it.
If you are using macOS, you could follow this guide. Download an image, and drag to your 'Applications' folder, click and run.
Currently, both of them are working pretty fine.
Either of them could satisfy the requirements in this course.
If you wish to host our image using Docker.app, you are supposed to click the icon for docker in the toolbar, and set the maximum memory to 4G-8G.
Docker.app requires sudo access, and the data will stored in $HOME/Library/Containers/com.docker.docker
However, here is an alternative solution.
First of all, you should make sure you have already installed HomeBrew.
Secondly, you are supposed to make sure your brew is up-to-date.
Finally, you can install VirtualBox and Docker by using the following commands:
To keep the Docker service active, we can use brew's service manager
Check the status:
Create a default instance using the following command:
Please refer to this link for some detail instruction.
Every time you created a new terminal window, and before you execute any command of 'docker *', you are supposed to run the following command:
This command will append some environment variables to your current sessions.
Error Message:
Please make sure you have already started your session.
The default manager by vbox is conflict with vpn AnyConnect, if you are using it, just disconnect it.
try xcode-select --install
and then brew update
, brew upgrade
, and brew doctor
again
They are in $HOME/.docker