Please do not install Docker as a snap, as this fundamentally breaks 
several parts of Docker. This is a well known limitation of snap. Simply 
install from the Docker repository, instructions are on the Docker website.

Building Docker is complicated, as it predates Go modules and still has no 
fully working mod (there's actually a vendoring mog that somehow gets 
swapped in). If anything, build from moby/moby as this is now the official 
source repo for building Moby (Docker). This is complicated and the 
documentation warns any ambitious adventurer to expect a very bumpy ride. 
Well, they phrase it differently.

The pseudo version tag you're seeing is fine, at least in principle. I see 
it also finally now when building Docker plugins.

On Tuesday, April 25, 2023 at 7:47:44 PM UTC+2 Mario Marietto wrote:

> ---> If you want to bring that tutorial up to date, I guess the best 
> person to work with would be the author of the tutorial.
>
> I emailed him,but he didn't respond. There is no guarantee that the author 
> of an old tutorial will reply to email messages. Rarely happens if the 
> tutorials are old.
>
> ---> If your objective is to build Docker on a new platform, then maybe 
> you should engage with the Docker project.
>
> What's a new platform ? Is the Jetson nano a new platform ? Anyway,the 
> point is that I don't know where the error is. If it comes from the go 
> modules (as it seems to me,according to what you are explaining),you are the 
> predestined and at the docker forum will tell me that I should come exactly 
> where I am. 
>
> ---> Have you tried reporting *specifically* what problem you see, to 
> wherever you got the snap from? That would be Ubuntu Launchpad if it's a 
> snap package from Canonical's default snap store.  
>
> I suspect that the Ubuntu Launchpad developers will jump me to the nvidia 
> forum,since the error happens on ubuntu 22.04 which runs on their board. 
> And here is where the monkey falls. Yes because nVidia supports only the 
> old Ubuntu 18.04 and they will give no help with the 22.04.
>
> ---> It's possibly some sort of kernel-level or cgroup incompatibility, in 
> which case rebuilding Docker itself isn't going to help.
>
> I have already checked this. I've installed Ubuntu 20.04 on the Jetson 
> nano using the same kernel that I'm using on the 22.04 and docker worked. 
> So,it's not a kernel fault. Based on my (little) experience the error is 
> due to some component in the Ubuntu 22.04 userland,maybe tied with the GPU 
> drivers used by nVidia for Ubuntu 18.04. 
>
> On Tue, Apr 25, 2023 at 7:13 PM Brian Candler <b.ca...@pobox.com> wrote:
>
>> Like I said, those instructions are woefully out of date. Whilst the Go 
>> language has a compatibility guarantee for code written in Go, this does 
>> not apply to the tooling, which is subject to change over time.  One of the 
>> major changes was the introduction of Go modules 
>> <https://go.dev/blog/using-go-modules>.
>>
>> If you want to bring that tutorial up to date, I guess the best person to 
>> work with would be the author of the tutorial. If your objective is to 
>> build Docker on a new platform, then maybe you should engage with the 
>> Docker project - who presumably already have suitable up-to-date recipes 
>> for building Docker (which could also be used to update the tutorial). If 
>> you want to learn how the Go tooling works, then starting from a broken and 
>> out-of-date tutorial is definitely a baptism of fire :-)
>>
>> If I understand you correctly, you say that the snap package of docker 
>> works on your Arm/Linux host under Ubuntu 18.04 and 20.04 but not 22.04. 
>> Have you tried reporting *specifically* what problem you see, to wherever 
>> you got the snap from? That would be Ubuntu Launchpad if it's a snap 
>> package from Canonical's default snap store.  It's possibly some sort of 
>> kernel-level or cgroup incompatibility, in which case rebuilding Docker 
>> itself isn't going to help.
>>
>> One other thought: Go has a very good story around cross-compilation. You 
>> should be able to compile Arm binaries on an x86_64 machine, i.e. you don't 
>> need to run the compiler on the target itself. Whether Docker's build 
>> system (e.g. Makefiles) make use of that, I don't know.
>>
>> On Tuesday, 25 April 2023 at 17:47:30 UTC+1 Mario Marietto wrote:
>>
>>> I don't understand where the real error is. According with the tutorial 
>>> I should have this path :
>>>  
>>>
>>> ~/docker_build/src/github.com/docker/docker/hack/dockerfile/install
>>>
>>>
>>> instead,I have this one :
>>>
>>> ~/docker_build/pkg/mod/
>>> github.com/docker/doc...@v23.0.4+incompatible/hack/dockerfile/install 
>>> <http://github.com/docker/docker@v23.0.4+incompatible/hack/dockerfile/install>
>>>
>>>
>>> I don't know if it is good or not,since I read "
>>> doc...@v23.0.4+incompatible".
>>>
>>> On Tue, Apr 25, 2023 at 6:29 PM Mario Marietto <mariet...@gmail.com> 
>>> wrote:
>>>
>>>> Ok. So,the real error is not with godoc / go doc,but with the next 
>>>> command to issue :
>>>>
>>>> marietto@marietto-nano:~/go_git/src$ go get -d github.com/docker/docker 
>>>> go: downloading github.com/docker/docker v23.0.4+incompatible 
>>>> go: added github.com/docker/docker v23.0.4+incompatible 
>>>>
>>>> marietto@marietto-nano:~/go_git/src$ go doc --help 
>>>> go: inconsistent vendoring in /home/marietto/go_git/src: 
>>>>        github.com/docker/doc...@v23.0.4+incompatible 
>>>> <http://github.com/docker/docker@v23.0.4+incompatible>: is explicitly 
>>>> required in go.mod, but not marked as explicit in v
>>>> endor/modules.txt 
>>>>        github.com/yuin/gold...@v1.4.13 
>>>> <http://github.com/yuin/goldmark@v1.4.13>: is explicitly required in 
>>>> go.mod, but not marked as explicit in vendor/modules
>>>> .txt 
>>>>        golang.org/x/m...@v0.10.0 <http://golang.org/x/mod@v0.10.0>: is 
>>>> explicitly required in go.mod, but not marked as explicit in 
>>>> vendor/modules.txt 
>>>>        golang.org/x/to...@v0.8.0 <http://golang.org/x/tools@v0.8.0>: 
>>>> is explicitly required in go.mod, but not marked as explicit in 
>>>> vendor/modules.txt 
>>>>
>>>>        To ignore the vendor directory, use -mod=readonly or -mod=mod. 
>>>>        To sync the vendor directory, run: 
>>>>                go mod vendor 
>>>> go: inconsistent vendoring in /home/marietto/go_git/src: 
>>>>        github.com/docker/doc...@v23.0.4+incompatible 
>>>> <http://github.com/docker/docker@v23.0.4+incompatible>: is explicitly 
>>>> required in go.mod, but not marked as explicit in v
>>>> endor/modules.txt 
>>>>        github.com/yuin/gold...@v1.4.13 
>>>> <http://github.com/yuin/goldmark@v1.4.13>: is explicitly required in 
>>>> go.mod, but not marked as explicit in vendor/modules
>>>> .txt 
>>>>        golang.org/x/m...@v0.10.0 <http://golang.org/x/mod@v0.10.0>: is 
>>>> explicitly required in go.mod, but not marked as explicit in 
>>>> vendor/modules.txt 
>>>>        golang.org/x/to...@v0.8.0 <http://golang.org/x/tools@v0.8.0>: 
>>>> is explicitly required in go.mod, but not marked as explicit in 
>>>> vendor/modules.txt 
>>>>
>>>>        To ignore the vendor directory, use -mod=readonly or -mod=mod. 
>>>>        To sync the vendor directory, run: 
>>>>                go mod vendor 
>>>> Usage of [go] doc: 
>>>>        go doc 
>>>>        go doc <pkg> 
>>>>        go doc <sym>[.<methodOrField>] 
>>>>        go doc [<pkg>.]<sym>[.<methodOrField>] 
>>>>        go doc [<pkg>.][<sym>.]<methodOrField> 
>>>>        go doc <pkg> <sym>[.<methodOrField>] 
>>>> For more information run 
>>>>        go help doc 
>>>>
>>>> Flags: 
>>>>  -C dir 
>>>>        change to dir before running command 
>>>>  -all 
>>>>        show all documentation for package 
>>>>  -c    symbol matching honors case (paths not affected) 
>>>>  -cmd 
>>>>        show symbols with package docs even if package is a command 
>>>>  -short 
>>>>        one-line representation for each symbol 
>>>>  -src 
>>>>        show source code for symbol 
>>>>  -u    show unexported symbols as well as exported 
>>>> exit status 2
>>>>
>>>> On Tue, Apr 25, 2023 at 6:26 PM Brian Candler <b.ca...@pobox.com> 
>>>> wrote:
>>>>
>>>>> No, like "go doc --help" instead of "godoc --help"
>>>>>
>>>>> On Tuesday, 25 April 2023 at 17:21:27 UTC+1 Mario Marietto wrote:
>>>>>
>>>>>> like this ?
>>>>>>
>>>>>> $ go get golang.org/x/tools/cmd/go doc
>>>>>>
>>>>>> go: module golang.org/x/tools@upgrade found (v0.8.0), but does not 
>>>>>> contain package golang.org/x/tools/cmd/go 
>>>>>> go: malformed module path "doc": missing dot in first path element
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Apr 25, 2023 at 6:16 PM Brian Candler <b.ca...@pobox.com> 
>>>>>> wrote:
>>>>>>
>>>>>>> You're following out-of-date instructions. godoc is now "go doc".
>>>>>>>
>>>>>>> On Tuesday, 25 April 2023 at 16:52:09 UTC+1 Mario Marietto wrote:
>>>>>>>
>>>>>>>> Hello to everyone.
>>>>>>>>
>>>>>>>> I've restarted the tutorial from the beginning and I've saved every 
>>>>>>>> command issued :
>>>>>>>>
>>>>>>>> $ cd /home/marietto
>>>>>>>> $ wget https://dl.google.com/go/go1.20.3.linux-arm64.tar.gz
>>>>>>>> $ tar -xf archive.tar.gz
>>>>>>>> $ mv go go1.20.3
>>>>>>>>
>>>>>>>> $ nano /home/marietto/.profile
>>>>>>>>
>>>>>>>> PATH="$HOME/bin:$HOME/.local/bin:$PATH"
>>>>>>>> GOROOT_BOOTSTRAP="$HOME/go1.20.3"
>>>>>>>> export PATH
>>>>>>>> export GOROOT_BOOTSTRAP
>>>>>>>>
>>>>>>>> $ source /home/marietto/.profile
>>>>>>>>
>>>>>>>> $ git clone https://go.googlesource.com/go go_git
>>>>>>>>
>>>>>>>> Clone in 'go_git' in corso...
>>>>>>>> remote: Finding sources: 100% (10/10)
>>>>>>>> remote: Total 570024 (delta 454760), reused 570018 (delta 454760)
>>>>>>>> Ricezione degli oggetti: 100% (570024/570024), 333.21 MiB | 6.12 
>>>>>>>> MiB/s, fatto.
>>>>>>>> Risoluzione dei delta: 100% (454760/454760), fatto.
>>>>>>>> Aggiornamento dei file in corso: 100% (12328/12328), fatto.
>>>>>>>>
>>>>>>>> $ cd go_git
>>>>>>>> $ git branch -a
>>>>>>>>
>>>>>>>>
>>>>>>>> * master
>>>>>>>>   remotes/origin/HEAD -> origin/master
>>>>>>>>   remotes/origin/master
>>>>>>>>   remotes/origin/release-branch.go1
>>>>>>>>   remotes/origin/release-branch.go1.1
>>>>>>>>   remotes/origin/release-branch.go1.10
>>>>>>>>   remotes/origin/release-branch.go1.11
>>>>>>>>   remotes/origin/release-branch.go1.12
>>>>>>>>   remotes/origin/release-branch.go1.13
>>>>>>>>   remotes/origin/release-branch.go1.14
>>>>>>>>   remotes/origin/release-branch.go1.15
>>>>>>>>   remotes/origin/release-branch.go1.16
>>>>>>>>   remotes/origin/release-branch.go1.17
>>>>>>>>   remotes/origin/release-branch.go1.18
>>>>>>>>   remotes/origin/release-branch.go1.19
>>>>>>>>   remotes/origin/release-branch.go1.2
>>>>>>>>   remotes/origin/release-branch.go1.20
>>>>>>>>   remotes/origin/release-branch.go1.3
>>>>>>>>   remotes/origin/release-branch.go1.4
>>>>>>>>   remotes/origin/release-branch.go1.5
>>>>>>>>   remotes/origin/release-branch.go1.6
>>>>>>>>   remotes/origin/release-branch.go1.7
>>>>>>>>   remotes/origin/release-branch.go1.8
>>>>>>>>   remotes/origin/release-branch.go1.9
>>>>>>>>
>>>>>>>> $ cd /home/marietto/go_git/src
>>>>>>>> $ bash make.bash
>>>>>>>>
>>>>>>>> Building Go cmd/dist using /home/marietto/go1.20.3. (go1.20.3 
>>>>>>>> linux/arm64)
>>>>>>>> Building Go toolchain1 using /home/marietto/go1.20.3.
>>>>>>>>
>>>>>>>> Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
>>>>>>>> Building Go toolchain2 using go_bootstrap and Go toolchain1.
>>>>>>>> Building Go toolchain3 using go_bootstrap and Go toolchain2.
>>>>>>>> Building packages and commands for linux/arm64.
>>>>>>>> ---
>>>>>>>> Installed Go for linux/arm64 in /home/marietto/go_git
>>>>>>>> Installed commands in /home/marietto/go_git/bin
>>>>>>>>
>>>>>>>> marietto@marietto-nano:~/go_git/src$ sudo nano 
>>>>>>>> /home/marietto/.profile
>>>>>>>>
>>>>>>>> GOROOT_BOOTSTRAP="/home/marietto/go1.20.3"
>>>>>>>> GOROOT=$HOME/go_git
>>>>>>>> GOPATH=$HOME/docker_build
>>>>>>>>
>>>>>>>> PATH="$HOME/bin:$HOME/.local/bin:$PATH:$GOROOT/bin:$GOPATH/bin"
>>>>>>>>
>>>>>>>> export PATH
>>>>>>>> export GOROOT_BOOTSTRAP
>>>>>>>> export GOROOT
>>>>>>>> export GOPATH
>>>>>>>>
>>>>>>>> $ go version
>>>>>>>> go version go1.20.3 linux/arm64
>>>>>>>>
>>>>>>>> marietto@marietto-nano:~/go_git/src$ go get 
>>>>>>>> golang.org/x/tools/cmd/godoc
>>>>>>>>
>>>>>>>>
>>>>>>>> go: downloading golang.org/x/tools v0.8.0
>>>>>>>> go: downloading golang.org/x/sys v0.7.0
>>>>>>>> go: downloading github.com/yuin/goldmark v1.4.13
>>>>>>>> go: downloading golang.org/x/mod v0.10.0
>>>>>>>> go: downloading golang.org/x/net 
>>>>>>>> v0.9.1-0.20230410173003-9001ca7de9d7
>>>>>>>> go: downloading golang.org/x/crypto 
>>>>>>>> v0.5.1-0.20230203195927-310bfa40f1e4
>>>>>>>> go: downloading golang.org/x/text v0.9.0
>>>>>>>> go: added github.com/yuin/goldmark v1.4.13
>>>>>>>> go: upgraded golang.org/x/mod v0.8.0 => v0.10.0
>>>>>>>> go: upgraded golang.org/x/tools v0.6.0 => v0.8.0
>>>>>>>>
>>>>>>>> marietto@marietto-nano:~/go_git/src$ godoc --help
>>>>>>>> bash: godoc: command not found
>>>>>>>>
>>>>>>>> $ sudo find / -name godoc
>>>>>>>>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/cmd/godoc 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/cmd/godoc>
>>>>>>>> /home/marietto/docker_build/pkg/mod/golang.org/x/to...@v0.8.0/godoc 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/godoc>
>>>>>>>>
>>>>>>>> marietto@marietto-nano:~/go_git/src$ ls -lah $GOPATH
>>>>>>>>
>>>>>>>> totale 12K
>>>>>>>> drwxrwxr-x  3 marietto marietto 4,0K apr 25 17:22 .
>>>>>>>> drwxr-xr-x 27 marietto marietto 4,0K apr 25 17:01 ..
>>>>>>>> drwxrwxr-x  4 marietto marietto 4,0K apr 25 17:22 pkg
>>>>>>>>
>>>>>>>> marietto@marietto-nano:~/go_git/src$ echo $GOPATH
>>>>>>>> /home/marietto/docker_build
>>>>>>>>
>>>>>>>> $ sudo find /home/marietto/docker_build -name src
>>>>>>>>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/cmd/bundle/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/cmd/bundle/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/cmd/guru/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/cmd/guru/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/cmd/fiximports/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/cmd/fiximports/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/cmd/callgraph/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/cmd/callgraph/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/assign/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/assign/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/loopclosure/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/loopclosure/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/structtag/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/structtag/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/ifaceassert/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/ifaceassert/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/pkgfact/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/pkgfact/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/atomicalign/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/atomicalign/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/tests/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/tests/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/buildssa/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/buildssa/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/sortslice/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/sortslice/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/asmdecl/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/asmdecl/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/testinggoroutine/testdata/src
>>>>>>>>  
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/testinggoroutine/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/bools/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/bools/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/errorsas/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/errorsas/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/framepointer/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/framepointer/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/atomic/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/atomic/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/shift/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/shift/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/fieldalignment/testdata/src
>>>>>>>>  
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/fieldalignment/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/stringintconv/testdata/src
>>>>>>>>  
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/stringintconv/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/nilness/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/nilness/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/lostcancel/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/lostcancel/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/unusedwrite/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unusedwrite/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/httpresponse/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/httpresponse/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/nilfunc/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/nilfunc/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/usesgenerics/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/usesgenerics/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/printf/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/printf/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/findcall/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/findcall/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/timeformat/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/timeformat/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/buildtag/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/buildtag/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/deepequalerrors/testdata/src
>>>>>>>>  
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/deepequalerrors/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/sigchanyzer/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/sigchanyzer/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/composite/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/composite/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/unmarshal/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unmarshal/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/cgocall/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/cgocall/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/directive/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/directive/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/copylock/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/copylock/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/stdmethods/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/stdmethods/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/reflectvaluecompare/testdata/src
>>>>>>>>  
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/reflectvaluecompare/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/unusedresult/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unusedresult/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/unsafeptr/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unsafeptr/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/unreachable/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unreachable/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/shadow/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/shadow/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/analysis/passes/ctrlflow/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/analysis/passes/ctrlflow/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/ssa/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/ssa/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/ssa/interp/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/ssa/interp/testdata/src>
>>>>>>>> /home/marietto/docker_build/pkg/mod/
>>>>>>>> golang.org/x/to...@v0.8.0/go/callgraph/vta/testdata/src 
>>>>>>>> <http://golang.org/x/tools@v0.8.0/go/callgraph/vta/testdata/src>
>>>>>>>>
>>>>>>>> $ sudo find /home/marietto/docker_build -name bin
>>>>>>>> nothing.
>>>>>>>>
>>>>>>>> Something is not going well with this command : 
>>>>>>>>
>>>>>>>> $ go get golang.org/x/tools/cmd/godoc
>>>>>>>>
>>>>>>>> and I suspect that's not my fault. My journey ends here ? 
>>>>>>>> No,please,help me. Thanks. 
>>>>>>>>
>>>>>>>> On Tue, Apr 25, 2023 at 3:11 PM Mario Marietto <mariet...@gmail.com> 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hello to everyone.
>>>>>>>>>
>>>>>>>>> I've restarted the tutorial from the beginning and I'm trying to 
>>>>>>>>> accomplish the next step,as indicated where he says : 
>>>>>>>>>
>>>>>>>>> "*Note* containerd by default installs as static in the install 
>>>>>>>>> script. Due to that failing (most likely needs musl to properly 
>>>>>>>>> compile 
>>>>>>>>> statically) I instead decided to install it as dynamic, meaning it 
>>>>>>>>> needed 
>>>>>>>>> to be one-offed"
>>>>>>>>>
>>>>>>>>> According with the tutorial I've created the script called 
>>>>>>>>> compile_docker_utils.sh and I have set it +x and I ran it :
>>>>>>>>>
>>>>>>>>> compile_docker_utils.sh
>>>>>>>>>
>>>>>>>>> PREFIX="$HOME/docker_utils" ./install.sh containerd dynamic 
>>>>>>>>> for package in "runc vndr" 
>>>>>>>>> do 
>>>>>>>>>  PREFIX="$HOME/docker_utils" ./install.sh $package 
>>>>>>>>> done
>>>>>>>>>  
>>>>>>>>>
>>>>>>>>> This is what happens :
>>>>>>>>>
>>>>>>>>> + RM_GOPATH=0 
>>>>>>>>> + TMP_GOPATH= 
>>>>>>>>> + : /home/marietto/docker_utils 
>>>>>>>>> + '[' -z '' ']' 
>>>>>>>>> ++ mktemp -d 
>>>>>>>>> + export GOPATH=/tmp/tmp.ZhgEkEF3Ly 
>>>>>>>>> + GOPATH=/tmp/tmp.ZhgEkEF3Ly 
>>>>>>>>> + RM_GOPATH=1 
>>>>>>>>> + case "$(go env GOARCH)" in 
>>>>>>>>> ++ go env GOARCH 
>>>>>>>>> + export GO_BUILDMODE=-buildmode=pie 
>>>>>>>>> + GO_BUILDMODE=-buildmode=pie 
>>>>>>>>> ++ dirname ./install.sh 
>>>>>>>>> + dir=. 
>>>>>>>>> + bin=containerd 
>>>>>>>>> + shift 
>>>>>>>>> + '[' '!' -f ./containerd.installer ']' 
>>>>>>>>> + . ./containerd.installer 
>>>>>>>>> ++ set -e 
>>>>>>>>> ++ : v1.6.20 
>>>>>>>>> + install_containerd dynamic 
>>>>>>>>> + echo 'Install containerd version v1.6.20' 
>>>>>>>>> Install containerd version v1.6.20 
>>>>>>>>> + git clone https://github.com/containerd/containerd.git 
>>>>>>>>> /tmp/tmp.ZhgEkEF3Ly/src/github.com/containerd/containerd 
>>>>>>>>> Clone in '/tmp/tmp.ZhgEkEF3Ly/src/github.com/containerd/containerd' 
>>>>>>>>> in corso... 
>>>>>>>>> remote: Enumerating objects: 111847, done. 
>>>>>>>>> remote: Counting objects: 100% (288/288), done. 
>>>>>>>>> remote: Compressing objects: 100% (159/159), done. 
>>>>>>>>> remote: Total 111847 (delta 147), reused 237 (delta 126), 
>>>>>>>>> pack-reused 111559 
>>>>>>>>> Ricezione degli oggetti: 100% (111847/111847), 94.08 MiB | 6.21 
>>>>>>>>> MiB/s, fatto. 
>>>>>>>>> Risoluzione dei delta: 100% (70427/70427), fatto. 
>>>>>>>>> Aggiornamento dei file in corso: 100% (5268/5268), fatto. 
>>>>>>>>> + cd /tmp/tmp.ZhgEkEF3Ly/src/github.com/containerd/containerd 
>>>>>>>>> + git checkout -q v1.6.20 
>>>>>>>>> + export 'BUILDTAGS=netgo osusergo static_build' 
>>>>>>>>> + BUILDTAGS='netgo osusergo static_build' 
>>>>>>>>> + export EXTRA_FLAGS=-buildmode=pie 
>>>>>>>>> + EXTRA_FLAGS=-buildmode=pie 
>>>>>>>>> + export 'EXTRA_LDFLAGS=-extldflags "-fno-PIC -static"' 
>>>>>>>>> + EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"' 
>>>>>>>>> + '[' dynamic = dynamic ']' 
>>>>>>>>> + export BUILDTAGS= 
>>>>>>>>> + BUILDTAGS= 
>>>>>>>>> + export EXTRA_FLAGS= 
>>>>>>>>> + EXTRA_FLAGS= 
>>>>>>>>> + export EXTRA_LDFLAGS= 
>>>>>>>>> + EXTRA_LDFLAGS= 
>>>>>>>>> + make 
>>>>>>>>> + bin/ctr 
>>>>>>>>> go: no such tool "compile" 
>>>>>>>>> make: *** [Makefile:249: bin/ctr] Errore 2 
>>>>>>>>> + RM_GOPATH=0 
>>>>>>>>> + TMP_GOPATH= 
>>>>>>>>> + : /home/marietto/docker_utils 
>>>>>>>>> + '[' -z '' ']' 
>>>>>>>>> ++ mktemp -d 
>>>>>>>>> + export GOPATH=/tmp/tmp.exqHoLQLtJ 
>>>>>>>>> + GOPATH=/tmp/tmp.exqHoLQLtJ 
>>>>>>>>> + RM_GOPATH=1 
>>>>>>>>> + case "$(go env GOARCH)" in 
>>>>>>>>> ++ go env GOARCH 
>>>>>>>>> + export GO_BUILDMODE=-buildmode=pie 
>>>>>>>>> + GO_BUILDMODE=-buildmode=pie 
>>>>>>>>> ++ dirname ./install.sh 
>>>>>>>>> + dir=. 
>>>>>>>>> + bin=runc 
>>>>>>>>> + shift 
>>>>>>>>> + '[' '!' -f ./runc.installer ']' 
>>>>>>>>> + . ./runc.installer 
>>>>>>>>> ++ set -e 
>>>>>>>>> ++ : v1.1.5 
>>>>>>>>> + install_runc proxy tini tomlv vndr 
>>>>>>>>> + RUNC_BUILDTAGS=seccomp 
>>>>>>>>> + echo 'Install runc version v1.1.5 (build tags: seccomp)' 
>>>>>>>>> Install runc version v1.1.5 (build tags: seccomp) 
>>>>>>>>> + git clone https://github.com/opencontainers/runc.git 
>>>>>>>>> /tmp/tmp.exqHoLQLtJ/src/github.com/opencontainers/runc 
>>>>>>>>> Clone in '/tmp/tmp.exqHoLQLtJ/src/github.com/opencontainers/runc' 
>>>>>>>>> in corso... 
>>>>>>>>> remote: Enumerating objects: 38294, done. 
>>>>>>>>> remote: Counting objects: 100% (77/77), done. 
>>>>>>>>> remote: Compressing objects: 100% (59/59), done. 
>>>>>>>>> remote: Total 38294 (delta 23), reused 59 (delta 18), pack-reused 
>>>>>>>>> 38217 
>>>>>>>>> Ricezione degli oggetti: 100% (38294/38294), 18.24 MiB | 4.57 
>>>>>>>>> MiB/s, fatto. 
>>>>>>>>> Risoluzione dei delta: 100% (25163/25163), fatto. 
>>>>>>>>> + cd /tmp/tmp.exqHoLQLtJ/src/github.com/opencontainers/runc 
>>>>>>>>> + git checkout -q v1.1.5 
>>>>>>>>> + '[' -z proxy ']' 
>>>>>>>>> + target=proxy 
>>>>>>>>> + make BUILDTAGS=seccomp proxy 
>>>>>>>>> make: ***  No rule to make target «proxy».  Stop.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> The same happens with tini,tomlv,vndr. Are these components 
>>>>>>>>> fundamentals for running docker ? Why won't it compile them ? Is 
>>>>>>>>> there 
>>>>>>>>> another method to install them ? Thanks.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Apr 25, 2023 at 2:34 AM Ian Lance Taylor <ia...@golang.org> 
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> On Mon, Apr 24, 2023 at 5:24 PM Mario Marietto <
>>>>>>>>>> mariet...@gmail.com> wrote:
>>>>>>>>>> >
>>>>>>>>>> > root@marietto-nano:/home/marietto/Scaricati/go_git/src# bash 
>>>>>>>>>> make.bash
>>>>>>>>>> >
>>>>>>>>>> > WARNING: /home/marietto/go1.10.3/bin/go does not exist, found 
>>>>>>>>>> /usr/bin/go from env
>>>>>>>>>> > WARNING: set /usr/lib/go-1.18 as GOROOT_BOOTSTRAP
>>>>>>>>>> > Building Go cmd/dist using /usr/lib/go-1.18. (go1.18.1 
>>>>>>>>>> linux/arm64)
>>>>>>>>>> > Building Go toolchain1 using /usr/lib/go-1.18.
>>>>>>>>>> > Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
>>>>>>>>>> > Building Go toolchain2 using go_bootstrap and Go toolchain1.
>>>>>>>>>> > Building Go toolchain3 using go_bootstrap and Go toolchain2.
>>>>>>>>>> > Building packages and commands for linux/arm64.
>>>>>>>>>> > ---
>>>>>>>>>> > Installed Go for linux/arm64 in /home/marietto/Scaricati/go_git
>>>>>>>>>> > Installed commands in /home/marietto/Scaricati/go_git/bin
>>>>>>>>>> > *** You need to add /home/marietto/Scaricati/go_git/bin to your 
>>>>>>>>>> PATH.
>>>>>>>>>> >
>>>>>>>>>> > It seems that everything is going well right now. What should I 
>>>>>>>>>> do next to compile and build docker ? Can you tell me at which exact 
>>>>>>>>>> point 
>>>>>>>>>> of the tutorial I should restart ? (this is the tutorial that I'm 
>>>>>>>>>> following 
>>>>>>>>>> :
>>>>>>>>>> >
>>>>>>>>>> > https://gist.github.com/cwgem/c913c80dcb8eeef38abc30ff3abf1750
>>>>>>>>>>
>>>>>>>>>> I've never tried this myself and I have no idea whether it 
>>>>>>>>>> works.  But
>>>>>>>>>> where those instructions say "all.bash", just run "make.bash" and 
>>>>>>>>>> keep
>>>>>>>>>> following the instructions as though you ran "all.bash".
>>>>>>>>>>
>>>>>>>>>> Ian
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -- 
>>>>>>>>> Mario.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> Mario.
>>>>>>>>
>>>>>>> -- 
>>>>>>> You received this message because you are subscribed to a topic in 
>>>>>>> the Google Groups "golang-nuts" group.
>>>>>>> To unsubscribe from this topic, visit 
>>>>>>> https://groups.google.com/d/topic/golang-nuts/Ggit4eu0RWo/unsubscribe
>>>>>>> .
>>>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>>>> golang-nuts...@googlegroups.com.
>>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.google.com/d/msgid/golang-nuts/e4ad316f-7a7c-4d8d-b161-7f1f929a2447n%40googlegroups.com
>>>>>>>  
>>>>>>> <https://groups.google.com/d/msgid/golang-nuts/e4ad316f-7a7c-4d8d-b161-7f1f929a2447n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Mario.
>>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to a topic in the 
>>>>> Google Groups "golang-nuts" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/golang-nuts/Ggit4eu0RWo/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>> golang-nuts...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/golang-nuts/70e6bf99-7f9c-4002-9be0-3dc5831ac24bn%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/golang-nuts/70e6bf99-7f9c-4002-9be0-3dc5831ac24bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Mario.
>>>>
>>>
>>>
>>> -- 
>>> Mario.
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "golang-nuts" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/golang-nuts/Ggit4eu0RWo/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> golang-nuts...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/db8a2512-ccdd-4bb8-8cc6-70c41b7ae824n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/golang-nuts/db8a2512-ccdd-4bb8-8cc6-70c41b7ae824n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Mario.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/cecd8735-97ff-4ff0-8fc2-7155ba38bf9cn%40googlegroups.com.

Reply via email to