Giter Site home page Giter Site logo

gizahnl / moby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moby/moby

1.0 1.0 1.0 159.85 MB

Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

Home Page: https://mobyproject.org/

License: Apache License 2.0

Go 96.79% Shell 1.69% Makefile 0.14% C 0.06% Assembly 0.01% PowerShell 1.07% Dockerfile 0.24%

moby's People

Contributors

aaronlehmann avatar akihirosuda avatar albers avatar alexlarsson avatar allencloud avatar calavera avatar coolljt0725 avatar cpuguy83 avatar creack avatar dmcgowan avatar dnephin avatar estesp avatar jamtur01 avatar jessfraz avatar justincormack avatar kolyshkin avatar lk4d4 avatar lowenna avatar metalivedev avatar runcom avatar sdurrheimer avatar svendowideit avatar thajeztah avatar tianon avatar tiborvass avatar tonistiigi avatar unclejack avatar vbatts avatar vieux avatar yongtang avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

kit-ty-kate

moby's Issues

dockerd fails if the docker0 bridge hasn't been created first

# dockerd
[...]
failed to start daemon: Error initializing network controller: Error creating default "bridge" network: failed to check bridge interface esistence: route ip+net: no such network interface
# ifconfig bridge create name docker0
# dockerd
[success]

I tried to reboot the machine and tried to relaunch dockerd and it still didn't work. However once the ifconfig command was executed, dockerd worked and even after a reboot without having to relaunch the ifconfig command first.

If it helps here is what my /etc/pf.conf and /etc/rc.conf look like:
scrn-2021-06-23-14-04-26

FreeBSD/arm64 isn't supported

Currently only amd64, i386 and arm (32) seem to be explicitly supported by this fork of docker. However I think it would be interesting to be able to use docker on a Raspberry Pi 4 running FreeBSD, for instance.

To make it work, a couple of arch specific files are missing in cli/vendor/golang.org/x/sys/unix, such as cli/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go for instance. Currently trying to build docker on a Raspberry Pi 4 running FreeBSD results in:

# (cd /usr/ports/sysutils/docker/work/src/github.com/docker;  for t in github.com/docker/cli/cmd/docker; do  out=$(/usr/bin/basename $(echo ${t} |  /usr/bin/sed -Ee 's/^[^:]*:([^:]+).*$/\1/' -e 's/^\.$/docker/'));  pkg=$(echo ${t} |  /usr/bin/sed -Ee 's/^([^:]*).*$/\1/' -e 's/^docker$/./');  echo "===>  Building ${out} from ${pkg}";  /usr/bin/env XDG_DATA_HOME=/usr/ports/sysutils/docker/work  XDG_CONFIG_HOME=/usr/ports/sysutils/docker/work  HOME=/usr/ports/sysutils/docker/work PATH=/usr/ports/sysutils/docker/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" CGO_ENABLED=1  CGO_CFLAGS="-I/usr/local/include"  CGO_LDFLAGS="-L/usr/local/lib"  GOARM= GOPATH="/usr/ports/sysutils/docker/work"  GOBIN=""  GO111MODULE=off GOPROXY=off /usr/local/bin/go build -v -buildmode=exe -trimpath -ldflags=-s  -o /usr/ports/sysutils/docker/work/bin/${out}  ${pkg};  done)
===>  Building docker from github.com/docker/cli/cmd/docker
github.com/docker/cli/vendor/golang.org/x/sys/unix
# github.com/docker/cli/vendor/golang.org/x/sys/unix
cli/vendor/golang.org/x/sys/unix/cap_freebsd.go:18:23: undefined: CAP_RIGHTS_VERSION_00
cli/vendor/golang.org/x/sys/unix/cap_freebsd.go:19:23: undefined: CAP_RIGHTS_VERSION_00
cli/vendor/golang.org/x/sys/unix/cap_freebsd.go:46:21: undefined: CapRights
cli/vendor/golang.org/x/sys/unix/cap_freebsd.go:50:24: undefined: CapRights
cli/vendor/golang.org/x/sys/unix/cap_freebsd.go:55:27: undefined: CapRights
cli/vendor/golang.org/x/sys/unix/cap_freebsd.go:90:29: undefined: CapRights
cli/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:12:6: missing function body
cli/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:13:6: missing function body
cli/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:14:6: missing function body
cli/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:15:6: missing function body
cli/vendor/golang.org/x/sys/unix/cap_freebsd.go:90:29: too many errors

Error creating default "bridge" network

# dockerd --group=docker --pidfile=/var/run/docker.pid
INFO[2021-05-28T11:23:37.230469642+02:00] Starting up
WARN[2021-05-28T11:23:37.233618013+02:00] cannot set sticky bit on socket /var/run/docker.sock under XDG_RUNTIME_DIR  error="homedir.StickRuntimeDirContents() is not supported on this system"
INFO[2021-05-28T11:23:37.280117107+02:00] libcontainerd: started new containerd process  pid=23822
INFO[2021-05-28T11:23:37.280380123+02:00] parsed scheme: "unix"                         module=grpc
INFO[2021-05-28T11:23:37.280409455+02:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2021-05-28T11:23:37.280469587+02:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2021-05-28T11:23:37.280494031+02:00] ClientConn switching balancer to "pick_first"  module=grpc
WARN[0000] deprecated version : `1`, please switch to version `2`
INFO[2021-05-28T11:23:37.626557206+02:00] starting containerd                           revision=unknown version=1.5.2
INFO[2021-05-28T11:23:37.664285838+02:00] loading plugin "io.containerd.content.v1.content"...  type=io.containerd.content.v1
INFO[2021-05-28T11:23:37.664531743+02:00] loading plugin "io.containerd.snapshotter.v1.zfs"...  type=io.containerd.snapshotter.v1
INFO[2021-05-28T11:23:37.675414156+02:00] loading plugin "io.containerd.snapshotter.v1.native"...  type=io.containerd.snapshotter.v1
INFO[2021-05-28T11:23:37.675617040+02:00] loading plugin "io.containerd.metadata.v1.bolt"...  type=io.containerd.metadata.v1
INFO[2021-05-28T11:23:37.675727526+02:00] metadata content store policy set             policy=shared
INFO[2021-05-28T11:23:37.687361833+02:00] loading plugin "io.containerd.differ.v1.walking"...  type=io.containerd.differ.v1
INFO[2021-05-28T11:23:37.687428320+02:00] loading plugin "io.containerd.gc.v1.scheduler"...  type=io.containerd.gc.v1
INFO[2021-05-28T11:23:37.687564717+02:00] loading plugin "io.containerd.service.v1.introspection-service"...  type=io.containerd.service.v1
INFO[2021-05-28T11:23:37.687646849+02:00] loading plugin "io.containerd.service.v1.containers-service"...  type=io.containerd.service.v1
INFO[2021-05-28T11:23:37.687705025+02:00] loading plugin "io.containerd.service.v1.content-service"...  type=io.containerd.service.v1
INFO[2021-05-28T11:23:37.687739246+02:00] loading plugin "io.containerd.service.v1.diff-service"...  type=io.containerd.service.v1
INFO[2021-05-28T11:23:37.687772001+02:00] loading plugin "io.containerd.service.v1.images-service"...  type=io.containerd.service.v1
INFO[2021-05-28T11:23:37.687808667+02:00] loading plugin "io.containerd.service.v1.leases-service"...  type=io.containerd.service.v1
INFO[2021-05-28T11:23:37.687842400+02:00] loading plugin "io.containerd.service.v1.namespaces-service"...  type=io.containerd.service.v1
INFO[2021-05-28T11:23:37.687873199+02:00] loading plugin "io.containerd.service.v1.snapshots-service"...  type=io.containerd.service.v1
INFO[2021-05-28T11:23:37.687902532+02:00] loading plugin "io.containerd.runtime.v2.task"...  type=io.containerd.runtime.v2
INFO[2021-05-28T11:23:37.706035975+02:00] loading plugin "io.containerd.service.v1.tasks-service"...  type=io.containerd.service.v1
INFO[2021-05-28T11:23:37.706277481+02:00] loading plugin "io.containerd.internal.v1.restart"...  type=io.containerd.internal.v1
INFO[2021-05-28T11:23:37.707548562+02:00] loading plugin "io.containerd.grpc.v1.containers"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.707606250+02:00] loading plugin "io.containerd.grpc.v1.content"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.707634605+02:00] loading plugin "io.containerd.grpc.v1.diff"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.707660026+02:00] loading plugin "io.containerd.grpc.v1.events"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.707686915+02:00] loading plugin "io.containerd.grpc.v1.healthcheck"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.707719180+02:00] loading plugin "io.containerd.grpc.v1.images"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.707748513+02:00] loading plugin "io.containerd.grpc.v1.leases"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.707775401+02:00] loading plugin "io.containerd.grpc.v1.namespaces"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.707825756+02:00] loading plugin "io.containerd.internal.v1.opt"...  type=io.containerd.internal.v1
INFO[2021-05-28T11:23:37.717458109+02:00] loading plugin "io.containerd.grpc.v1.snapshots"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.717515797+02:00] loading plugin "io.containerd.grpc.v1.tasks"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.717545129+02:00] loading plugin "io.containerd.grpc.v1.version"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.717575928+02:00] loading plugin "io.containerd.grpc.v1.introspection"...  type=io.containerd.grpc.v1
INFO[2021-05-28T11:23:37.718070673+02:00] serving...                                    address=/var/run/docker/containerd/containerd-debug.sock
INFO[2021-05-28T11:23:37.718278446+02:00] serving...                                    address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2021-05-28T11:23:37.718416798+02:00] serving...                                    address=/var/run/docker/containerd/containerd.sock
INFO[2021-05-28T11:23:37.718448086+02:00] containerd successfully booted in 0.117429s
WARN[2021-05-28T11:23:37.761280598+02:00] Failed to configure golang's threads limit: open /proc/sys/kernel/threads-max: no such file or directory
INFO[2021-05-28T11:23:37.762070624+02:00] parsed scheme: "unix"                         module=grpc
INFO[2021-05-28T11:23:37.762108757+02:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2021-05-28T11:23:37.762141023+02:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2021-05-28T11:23:37.762161555+02:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2021-05-28T11:23:37.775966478+02:00] parsed scheme: "unix"                         module=grpc
INFO[2021-05-28T11:23:37.776003633+02:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2021-05-28T11:23:37.776042254+02:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2021-05-28T11:23:37.776058876+02:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2021-05-28T11:23:37.799432598+02:00] [graphdriver] using prior storage driver: zfs
INFO[2021-05-28T11:23:37.858010387+02:00] [graphdriver] using prior storage driver: zfs
ERRO[2021-05-28T11:23:37.868130151+02:00] layer does not exist, not restoring image sha256:34f029567538ca9635116074c5f16f094592a6d6e35b83a877ac046d0ff1b8cb, sha256:b0ecae495281120118315c29dedeba5401adb9e7dfb81a970adf5ee342d40121, freebsd
ERRO[2021-05-28T11:23:37.868570141+02:00] layer does not exist, not restoring image sha256:e122726568cf6f1bcc985bbb5550a6cb52684cc0c96f9df943ac3401229967c6, sha256:882b38f2ab24762f7de3145f61b7cc3e7702091b1e02aed6994b4edd02ad2077, freebsd
INFO[2021-05-28T11:23:37.888069020+02:00] Loading containers: start.
ERRO[2021-05-28T11:23:37.914340807+02:00] failed to load container mount                container=a3154942c8214e267b7540d50c8387882c60cd2ffeaa69055ae8ad88e72fc169 error="mount does not exist"
INFO[2021-05-28T11:23:37.943676879+02:00] Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address
ERRO[2021-05-28T11:23:37.944688366+02:00] open /proc/self/mountinfo: no such file or directory
INFO[2021-05-28T11:23:37.944726987+02:00] stopping event stream following graceful shutdown  error="<nil>" module=libcontainerd namespace=moby
INFO[2021-05-28T11:23:37.945006137+02:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=plugins.moby
INFO[2021-05-28T11:23:37.944956271+02:00] stopping healthcheck following graceful shutdown  module=libcontainerd
failed to start daemon: Error initializing network controller: Error creating default "bridge" network: failed to check bridge interface esistence: route ip+net: no such network interface

Docker infinit loops when the command requested does not exist

scrn-2021-06-23-13-34-54
Of course bash does not exist on FreeBSD, I tried it out of habit with linux images. However this command despite displaying an error message did not return to the parent prompt and none of my subsequent ^C on ^Z were successful. The only thing that worked was killall -9 docker from another terminal.

Build instructions?

The only things that I can find that look like a build system in the repo seem to assume that I already have working docker tools. How do I do a bootstrap build on FreeBSD?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.