无法为Go应用程序创建Docker映像

I am trying to create my first docker image for the go application I developed. But I can't able to do it. It's working fine in my Ubuntu 16. After that I created a repo in Github. Then I tried to download and install it using docker by the command.

go get github.com/shihab2555/Peer

It started downloading all the dependency. At the very end it's showing the error

Unrecognized import path ....... import path does not begin with hostname

Here is the full error.

package shihab/go/src/gx/ipfs/QmPvyPwuCgJ7pDmrKDxRtsScJgBaM5h4EpRL2qQJsmXf4n/go-libp2p-crypto: unrecognized import path "shihab/go/src/gx/ipfs/QmPvyPwuCgJ7pDmrKDxRtsScJgBaM5h4EpRL2qQJsmXf4n/go-libp2p-crypto" (import path does not begin with hostname)  

Though my required library is installed in

shihab/go/src/gx/ipfs/QmPvyPwuCgJ7pDmrKDxRtsScJgBaM5h4EpRL2qQJsmXf4n/go-libp2p-crypto

When I cloned the same project from Github and tried to run it from my local machine ot worked perfectly. Here is the code I used.

package main

import (
"bufio"
"context"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"flag"
"fmt"
"io"
"log"
mrand "math/rand"
"os"
"strconv"
"strings"
"sync"
"time"


"github.com/davecgh/go-spew/spew"
libp2p "github.com/libp2p/go-libp2p"
crypto "shihab/go/src/gx/ipfs/QmPvyPwuCgJ7pDmrKDxRtsScJgBaM5h4EpRL2qQJsmXf4n/go-libp2p-crypto"
net "shihab/go/src/gx/ipfs/QmSTaEYUgDe1r581hxyd2u9582Hgp3KX4wGwYbRqz2u9Qh/go-libp2p-net"
pstore "shihab/go/src/gx/ipfs/QmWtCpWB39Rzc2xTB75MKorsxNpo3TyecTEN24CJ3KVohE/go-libp2p-peerstore"
ma "shihab/go/src/gx/ipfs/QmYmsdtJ3HsodkePE3eU3TsCaP2YvPZJ4LoXnNkDE5Tpt7/go-multiaddr"
golog "shihab/go/src/gx/ipfs/QmZChCsSt8DctjceaL56Eibc29CVQq4dGKRXC5JRZ6Ppae/go-log"
peer "shihab/go/src/gx/ipfs/QmbNepETomvmXfz1X5pHNFD2QuPqnqi47dTd94QJWSorQ3/go-libp2p-peer"
gologging "shihab/go/src/gx/ipfs/QmcaSwFc5RBg8yCq54QURwEU4nwjfCpjbpmaAm4VbdGLKv/go-logging"
host "shihab/go/src/gx/ipfs/Qmf5yHzmWAyHSJRPAmZzfk3Yd7icydBLi7eec5741aov7v/go-libp2p-host"
)

The same error is showing for all the bottom 8 line. What should I do? Should I try to run it from my local machine to docker instead of downloading from Githb?