I want to build a Linux environment on macOS (10.13 High Sierra) using Docker

Asked 2 years ago, Updated 2 years ago, 77 views

It's almost the same question as the title.
I don't know how I can use Docker to build a Linux virtual environment on my PC.
I have already installed Docker on my PC, but I don't know what steps I should take to build and develop a Linux virtual environment.
More specifically, I'm thinking of creating a C compiler based on a certain document, but the document says, "There is a slight difference between macOS and Linux at the assembly source level, so please prepare a Linux environment in Docker and test it...
Therefore, I would appreciate it if you could let me know if anyone knows how to solve it.

linux docker docker-for-mac

2022-09-30 20:13

2 Answers

Run the following command:
You can interact with Ubuntu (Linux environment) using Docker.

 docker run-it ubuntu:latest/bin/bash

The next step is
I understand that we will build a development environment here.
Containers can be configured as they are, or
The created file cannot be maintained.


Simple Applications There was an example of building and executing using Docker, so
Please refer to this article.

https://docs.docker.com/engine/examples/dotnetcore/


2022-09-30 20:13

If you want to develop the C compiler on Linux,
Install VirtualBox and
It's better to use Linux Distro such as Ubuntu. I think it's easy because it doesn't take much effort.


2022-09-30 20:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.