What is the way for upgrading FreeBSD from 11 Release to 12 Current?
# svn co https://svn.freebsd.org/base/head /usr/src. Then set up the required configuration (/etc/src.conf and optionally a custom kernel configuration) and build and install the base system. The handbook has a section on upgrading FreeBSD from source which might be of some help here. But also be sure to check out /usr/src/Makefile because that contains some good instructions as well.
man src.confcommand you'd get the manualpage for the currently installed base system. These wouldn't list any options for a new version, especially when compilation options got added or removed.
man -M /usr/src/share/man src.conf. This would give you all the relevant options which you can use for the base system you're about to build and install.
portsnap fetch extract portsnap fetch update pkg upgrade
pkguses the quarterly repository by default, and not the latest.
# make extract, this would download and unpack the required source files in the working directory. After that you can fully study the source tree as well as the scripts being used to build it and set it up.
FreeBSD svn-update 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016 firstname.lastname@example.org:/usr/obj/usr/src/sys/GENERIC amd64
make extract. But I have a hard time understanding how I could add this patch.
svn patch ~ egypcio/freebsd/ports(as described in same page) returns with an error: ~egypcio/freebsd/ports does not exist.
No worries. We all have to start somewhere and being as clear as possible about this is more likely to help us spot where things go wrong and help you fix that. But most of all: I know that all of this can be a little daunting at first.At the risk of appearing silly.
You don't have to. That patch was meant to update the port so that it would run better on the latest FreeBSD snapshot, which you don't use. I don't have hands on experience with the aftermath of PR's but considering that the report was closed and marked as fixed I can't help think that there's nothing left to fix here.
# make install clean. Or, as you apparently did before, use the binary package (so: using
# pkg install docker-freebsd). That would install the latest version which was made available for FreeBSD, ready to use.
root@box:/usr/ports # svn patch ~egypcio/freebsd/ports/ports.HEAD.r419559.sysutils.docker-freebsd.patch U sysutils/docker-freebsd/Makefile U sysutils/docker-freebsd/distinfo
macron:/home/peter/temp/docker-freebsd $ ls Makefile docker.patch pkg-descr distinfo files/ pkg-message macron:/home/peter/temp/docker-freebsd $ head docker.patch Index: sysutils/docker-freebsd/Makefile =================================================================== --- sysutils/docker-freebsd/Makefile (revision 419559) +++ sysutils/docker-freebsd/Makefile (working copy) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= docker-freebsd -PORTVERSION= 20150625 +PORTVERSION= 20150701
patch -p2 < docker.patch.
# docker version
Client version: 1.7.0-dev Client API version: 1.19 Go version (client): go1.6.2 Git commit (client): b1c37d2 OS/Arch (client): freebsd/amd64 Server version: 1.7.0-dev Server API version: 1.19 Go version (server): go1.6.2 Git commit (server): b1c37d2 OS/Arch (server): freebsd/amd64
# docker run hello-worldwas working correctly but here is the result
Unable to find image 'hello-world:latest' locally latest: Pulling from hello-world fc882b159a63: Pull complete f054dc87ed76: Pull complete Digest: sha256:9a4ec8dac439d00fff31bf41b23902bfd7f7465d4b4c8c950e572e7392f33c66 Status: Downloaded newer image for hello-world:latest jail: exec /hello: No such file or directory jail: /hello: failed
# docker run -t -i repositoryjp/centos /bin/bash. I think this is more of the fact that docker (under freebsd) is at the stage of development and that it does not work at 100%, or it is due to the version used. But I'm not expert enough to say what.