-
Notifications
You must be signed in to change notification settings - Fork 15
How To
A.I edited this page Jul 8, 2016
·
13 revisions
[bargee@node-01 ~]$ sudo /etc/init.d/docker restart v1.12.0-rc3
[bargee@node-01 ~]$ docker swarm init --listen-addr "<manager-ip-address>:2377"
You may need to specify
--listen-addr "<manager-ip-address>:2377"
in case of https://github.com/docker/docker/issues/23877#issuecomment-229224920 .
[bargee@node-02 ~]$ sudo /etc/init.d/docker restart v1.12.0-rc3
[bargee@node-02 ~]$ docker swarm join "<manager-ip-address>:2377"
See also https://github.com/ailispaw/swarm-barge.
[bargee@barge ~]$ sudo -i
[root@barge ~]# pkg install shadow
[root@barge ~]# echo "dockremap:100000:65536" > /etc/subuid
[root@barge ~]# echo "dockremap:100000:65536" > /etc/subgid
[root@barge ~]# echo 'DOCKER_EXTRA_ARGS="--userland-proxy=false --userns-remap=default"' >> /etc/default/docker
[root@barge ~]# /etc/init.d/docker restart v1.11.2
[bargee@barge ~]$ date
Fri Jul 8 20:51:36 UTC 2016
[bargee@barge ~]$ sudo pkg install tzdata
[bargee@barge ~]$ echo 'Europe/Paris' | sudo tee /etc/timezone
Europe/Paris
[bargee@barge ~]$ sudo cp -L /usr/share/zoneinfo/Europe/Paris /etc/localtime
[bargee@barge ~]$ date
Fri Jul 8 22:51:58 CEST 2016
You can find your timezone at
/usr/share/zoneinfo
after installingtzdata
package.
To set back to UTC
,
[bargee@barge ~]$ echo 'Etc/UTC' | sudo tee /etc/timezone
Etc/UTC
[bargee@barge ~]$ sudo ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
[bargee@barge ~]$ date
Fri Jul 8 20:52:19 UTC 2016