Karton - 在 macOS 上运行 Linux 程序, 一个不同的 Linux distro, 或者一个不同的架构
[Web site] – [Install] – [How to use] – [FAQ] – [Contribute]
Karton is a tool to transparently run Linux programs on macOS or on another Linux distro.
…In another terminal you can attach to the running program and debug it.
$ # Find the PID of the test_arm program.
$ karton run ubuntu-work-arm ps aux | grep test_arm
test_arm 42 [...] test_arm
$ # Debug it!
$ karton run ubuntu-work-arm gdb --pid 42
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
[...]
Attaching to process 11
[...]
0x00007f53430e4740 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:84
84 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb)In the example, by prefixing your commands with karton run ubuntu, you can run them on Ubuntu even if you are using macOS (or another Linux distro!). Files are shared across the two operating systems and executing commands like this is very fast, making the whole experience smooth.
Karton uses Docker to create a semi-permanent container where all the commands are executed. The management of this container is transparent to the user, who doesn't need to worry about the Docker-related details.
Karton images can also be easily configured to share files or directory with your host system.
暂无开放 Issues,或尚未同步最近议题。