srl-labs / containerlab

container-based networking labs
https://containerlab.dev
BSD 3-Clause "New" or "Revised" License
1.47k stars 250 forks source link

Issue during installation - macOS user #464

Closed Spiritus44 closed 3 years ago

Spiritus44 commented 3 years ago

Hello,

Thank you for this promising project. This afternoon I tried to install containerlab (from source) on my macbook pro 2020, I followed the instructions specified on this page, so I tried that :

go build github.com/containernetworking/plugins/pkg/ns: build constraints exclude all Go files in /Users/XXXXX/go/pkg/mod/github.com/containernetworking/plugins@v0.9.1/pkg/ns
# github.com/srl-labs/containerlab/runtime/containerd
runtime/containerd/containerd.go:171:3: undefined: oci.WithoutRunMount

My Macos version is 11.4.

I have the following go version :

containerlab [master] go version
go version go1.16.5 darwin/amd64

Do you know how can I successfully install containerlab on my mac ? Should I change my containerd version ?

hellt commented 3 years ago

Hi Thanks for checking containerlab! Mac OS is not a supported OS, due to the fact that docker doesn't run natively on os x

On Mon, 21 Jun 2021 at 15:03, Spiritus @.***> wrote:

Hello,

Thank you for this promising project. This afternoon I tried to install containerlab (from source) on my macbook pro 2020, I followed the instructions specified on this page https://containerlab.srlinux.dev/install/#from-source, so I tried that :

go build github.com/containernetworking/plugins/pkg/ns: build constraints exclude all Go files in @.***/pkg/ns

github.com/srl-labs/containerlab/runtime/containerd

runtime/containerd/containerd.go:171:3 http://github.com/srl-labs/containerlab/runtime/containerdruntime/containerd/containerd.go:171:3: undefined: oci.WithoutRunMount

My Macos version is 11.4.

I have the following go version :

containerlab [master] go version go version go1.16.5 darwin/amd64

Do you know how can I successfully install containerlab on my mac ? Should I change my containerd version ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/srl-labs/containerlab/issues/464, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLKV5ICPXANQQRZKVQ4M6LTT42AJANCNFSM47BRHZ2A .

hellt commented 3 years ago

The way we run containerlab on mac is by launching a VM (i.e. vagrant box or virtualbox/vmware vm)

Spiritus44 commented 3 years ago

Thank you @hellt for your quick answer.

I'm not sure to understand what you mean by "docker doesn't run natively on os x", Docker released an official way to install it on mac OS.

Do you know when containerlabs will be supported on Mac os ? Is it plan ?

Whatever, until it's not, I will use a VM as you advised me.

hellt commented 3 years ago

On a mac os docker runs by means of a docker-desktop application, which is not "the native" way to run docker as opposed to running it under linux.

Until docker natively runs on mac, such as it does on linux, or until projects like lima won't be finilized, we can't have containerlab natively supported on a mac os

Spiritus44 commented 3 years ago

Ok, I got it, thank you for your help.