LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2021, 07:46 PM   #1
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 140

Rep: Reputation: 23
Help to install docker[error says go.mod not found)


Here, as the topic, I encounterred an error while install docker via sboinstall docker, the last error message like:
PHP Code:
...
moby-20.10.2/volume/volume.go

Removing bundles
/

---> 
Making bundledynbinary (in bundles/dynbinary)
Buildingbundles/dynbinary-daemon/dockerd-20.10.2
GOOS
="" GOARCH="" GOARM=""
no required module provides package github.com/docker/docker/cmd/dockerdgo.mod file not found in current directory or any parent directorysee 'go help modules'
Failures:
  
dockerdocker.SlackBuild return non-zero 
I know nothing about go, and don't know how to fix this issue.
And, I use slackare-current , x86_64.
Thanks
 
Old 04-18-2021, 08:51 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,306

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
use "su -" instead of just "su" when switching to root to build docker
 
Old 04-18-2021, 09:33 PM   #3
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 140

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by willysr View Post
use "su -" instead of just "su" when switching to root to build docker
It seems not, I use sboinstall docker to install it automately.
And, it will get the same failure if using sbopkg. And of course use root account to do so.
 
Old 04-19-2021, 12:18 AM   #4
bogeyman2007
Member
 
Registered: Jul 2015
Distribution: Arch, Mint, Slackware, Tiny Core
Posts: 31

Rep: Reputation: Disabled
Maybe you can try the docker binaries instead of compiling from source.

https://docs.docker.com/engine/install/binaries/
 
Old 04-19-2021, 01:01 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,497

Rep: Reputation: 7871Reputation: 7871Reputation: 7871Reputation: 7871Reputation: 7871Reputation: 7871Reputation: 7871Reputation: 7871Reputation: 7871Reputation: 7871Reputation: 7871
Compiling docker and its dependencies from source using sbopkg needs some manual action in the middle or else the google-go-lang package which was built as a dependency won't work properly. See https://alien.slackbook.org/blog/set...ate-firewalls/ where I documented the process.
 
1 members found this post helpful.
Old 04-19-2021, 04:22 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 6,143

Rep: Reputation: Disabled
I'll just add that with the new version of docker in SBo the docker Slackbuild will install dockerd, but to actually use the "docker" command you will need also to install the docker-cli SlackBuild.
 
Old 04-20-2021, 03:42 AM   #7
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 140

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by Alien Bob View Post
Compiling docker and its dependencies from source using sbopkg needs some manual action in the middle or else the google-go-lang package which was built as a dependency won't work properly. See https://alien.slackbook.org/blog/set...ate-firewalls/ where I documented the process.
I tried following the documents refferenced, and got the same error.
I hope it will be ok later. Thanks for your job. What a pity I know little about go, and cannot resolve such problems as you.
Best regards.
 
Old 04-20-2021, 03:45 AM   #8
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 140

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by ponce View Post
I'll just add that with the new version of docker in SBo the docker Slackbuild will install dockerd, but to actually use the "docker" command you will need also to install the docker-cli SlackBuild.
It still cannot work as so far. Hope it will be ok latter. Thanks for your efforts.
 
Old 04-20-2021, 09:14 AM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,306

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by kcynice View Post
It seems not, I use sboinstall docker to install it automately.
And, it will get the same failure if using sbopkg. And of course use root account to do so.
there's a difference when you use "su -" rather than normal "su"
 
Old 06-10-2021, 05:14 PM   #10
eshkinkot
LQ Newbie
 
Registered: Jun 2021
Distribution: Slackware
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by kcynice View Post
PHP Code:
no required module provides package github.com/docker/docker/cmd/dockerdgo.mod file not found in current directory or any parent directory 
If you use go1.16 then try to set "GO111MODULE" env variable to "auto". Go 1.16 by default run in module-aware mode (see https://blog.golang.org/go116-module-changes#TOC_2.) and docker does not have go.mod in it source. I do something like this "sbopkg -b docker:GO111MODULE=auto" and it is built correctly with go1.16.5.
 
2 members found this post helpful.
Old Yesterday, 03:40 AM   #11
avian
Member
 
Registered: Aug 2014
Posts: 69

Rep: Reputation: Disabled
Quote:
Originally Posted by eshkinkot View Post
If you use go1.16 then try to set "GO111MODULE" env variable to "auto". Go 1.16 by default run in module-aware mode (see https://blog.golang.org/go116-module-changes#TOC_2.) and docker does not have go.mod in it source. I do something like this "sbopkg -b docker:GO111MODULE=auto" and it is built correctly with go1.16.5.
Thanks heaps for that tip. All this time I've been using the latest go1.15.x series thinking the solution to move to go1.16.x was going to be far more complex than that. Just built the latest docker packages and related dependencies that require go (runc-1.0.0_rc95, containerd-1.5.2, docker-proxy-20210525_64b7a45, docker-20.10.7, docker-cli-20.10.7) using go1.16.5 with no issues.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
LXer: mod.io is a new open API for cross-platform Steam Workshop-like mod support LXer Syndicated Linux News 0 05-17-2018 03:11 AM
[SOLVED] what is the difference between mdraid09.mod and mdraid09_be.mod in grub ? masuch Linux - Newbie 3 11-06-2012 06:40 PM
conf :Mod rewrite,Mod Jkand virtualhosts ayyappansan Linux - Server 1 10-25-2009 03:10 AM
Apache2 mod vhost_alias - problems with .htaccess mod rewrite d_t_baker Linux - Server 1 08-16-2007 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration