[vpsFree.cz: community-list] Docker na CentOS 7?

Ladislav Nesnera nesnera at email.cz
Fri Apr 28 20:18:54 CEST 2017


Šestku nevím - nezkoušel jsem.

Dokonce i 7čka si po restartu postavila hlavu ve virtuálce, která 
předtím fachčila. Naštěstí jsem měl druhou a ta držela, tak jsem na ní
vyzkoušel image pro  CAS <https://www.apereo.org/projects/cas> a
Discourse <https://en.wikipedia.org/wiki/Discourse_%28software%29> a
pohořel jsem. KVM to jistilo, tudíž Docker 17.xx.Discourse se s tím
spokojil, CAS vzdoroval i tak, tudíž kašlu na Docker a pokusím se o
Maven variantu
<https://apereo.github.io/cas/5.0.x/installation/Maven-Overlay-Installation.html>.

Kdyby snad někdo chtěl  hledat rozdíly, tak:

*** funkční varianta ***

# systemctl -l status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled;
vendor preset: disabled)
   Active: active (running) since Čt 2017-04-27 00:06:19 CEST; 13h ago
     Docs: http://docs.docker.com
 Main PID: 1640 (docker-current)
   Memory: 19.0M
   CGroup: /system.slice/docker.service
           └─1640 /usr/bin/docker-current daemon --exec-opt
native.cgroupdriver=systemd --selinux-enabled --log-driver=journald

dub 27 13:18:59 lada docker-current[1640]:
time="2017-04-27T13:18:59.449156023+02:00" level=warning msg="Seccomp is
not enabled in your kernel, running container without default profile."
dub 27 13:18:59 lada oci-register-machine[4554]: 2017/04/27 13:18:59
Register machine: prestart
8e790ca2f39c3e437bb622a0d331cf478467d90de5fe583716a3fbd1e62dcf51 4543
/var/lib/docker/vfs/dir/51f07b76fd74da7307d22e24bed23bfe9fc669337044547a25395d40d9baf987
dub 27 13:18:59 lada oci-systemd-hook[4560]: systemdhook <debug>: parse
1783 bytes of config data from file
dub 27 13:18:59 lada docker-current[1640]: [95B blob data]
dub 27 13:18:59 lada docker-current[1640]:
time="2017-04-27T13:18:59.737788095+02:00" level=warning msg="os:
process already finished"
dub 27 13:18:59 lada oci-register-machine[4563]: 2017/04/27 13:18:59
Register machine: poststop
8e790ca2f39c3e437bb622a0d331cf478467d90de5fe583716a3fbd1e62dcf51 0
/var/lib/docker/vfs/dir/51f07b76fd74da7307d22e24bed23bfe9fc669337044547a25395d40d9baf987
dub 27 13:18:59 lada docker-current[1640]:
time="2017-04-27T13:18:59.884123454+02:00" level=error msg="error
locating sandbox id
3cceecb1924ba951cfbc898325ddbe969b12a02e8b210178920d9f33e1f0cf95:
sandbox 3cceecb1924ba951cfbc898325ddbe969b12a02e8b210178920d9f33e1f0cf95
not found"
dub 27 13:18:59 lada docker-current[1640]:
time="2017-04-27T13:18:59.884194765+02:00" level=warning msg="failed to
cleanup ipc mounts:\nfailed to umount
/var/lib/docker/containers/8e790ca2f39c3e437bb622a0d331cf478467d90de5fe583716a3fbd1e62dcf51/shm:
invalid argument"
dub 27 13:18:59 lada docker-current[1640]:
time="2017-04-27T13:18:59.884219793+02:00" level=error msg="Error
unmounting container
8e790ca2f39c3e437bb622a0d331cf478467d90de5fe583716a3fbd1e62dcf51: not
mounted"
dub 27 13:18:59 lada docker-current[1640]:
time="2017-04-27T13:18:59.884337919+02:00" level=error msg="Handler for
POST
/v1.22/containers/8e790ca2f39c3e437bb622a0d331cf478467d90de5fe583716a3fbd1e62dcf51/start
returned error: Container command not found or does not exist."


*** nefunkční varianta ***

systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled;
vendor preset: disabled)
  Drop-In: /etc/systemd/system/docker.service.d
           └─shared_mounts.conf
   Active: failed (Result: exit-code) since Čt 2017-04-27 12:52:12 CEST;
21min ago
     Docs: http://docs.docker.com
  Process: 1077 ExecStart=/usr/bin/docker-current daemon --exec-opt
native.cgroupdriver=systemd $OPTIONS $DOCKER_STORAGE_OPTIONS
$DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY
(code=exited, status=1/FAILURE)
 Main PID: 1077 (code=exited, status=1/FAILURE)

dub 27 12:52:12 iam docker-current[1077]:
time="2017-04-27T12:52:12.277343493+02:00" level=warning msg="Docker
could not enable SELinux on the host system"
dub 27 12:52:12 iam docker-current[1077]:
time="2017-04-27T12:52:12.280300134+02:00" level=info msg="Graph
migration to content-addressability took 0.00 seconds"
dub 27 12:52:12 iam docker-current[1077]:
time="2017-04-27T12:52:12.283029537+02:00" level=warning msg="Running
modprobe nf_nat failed with message: ``, er... status 1"
dub 27 12:52:12 iam docker-current[1077]:
time="2017-04-27T12:52:12.286718921+02:00" level=info msg="Firewalld
running: false"
dub 27 12:52:12 iam docker-current[1077]:
time="2017-04-27T12:52:12.484775931+02:00" level=info msg="Default
bridge (docker0) is assigned with an IP addres...P address"
dub 27 12:52:12 iam docker-current[1077]:
time="2017-04-27T12:52:12.522708036+02:00" level=fatal msg="Error
starting daemon: Error initializing network controller: E...
dub 27 12:52:12 iam systemd[1]: docker.service: main process exited,
code=exited, status=1/FAILURE
dub 27 12:52:12 iam systemd[1]: Failed to start Docker Application
Container Engine.
dub 27 12:52:12 iam systemd[1]: Unit docker.service entered failed state.
dub 27 12:52:12 iam systemd[1]: docker.service failed.


Ještě že je venku tak "krásně"   :D

;?


On 27.4.2017 10:03, Honza KAŠPÁREK wrote:
> Ahoj,
>
> bude to fungovat i pro CentOS 6 ?
>
> Honza
>
> Dne 27. dubna 2017 9:47 Ladislav Nesnera <nesnera at email.cz> napsal(a):
>> Díky (y)
>>
>> Úspěšné rozchození Dockeru dle návodu mohu potvrdit. Vynechal jsem jen krok
>> 5, spouštím jako # systemctl start docker a # docker run hello-world
>> funguje.
>>
>> Dík patří ještě osazenstvu base48 (jmenovitě b42, Snajpa, Sorki a mimo base
>> Šimon) s kterými jsem v noci dospěl k témuž.
>>
>> ;?
>>
>>
>> On 27.4.2017 05:40, Oto Stefan wrote:
>>
>> Zdravím,
>> ano Docker na CentOS 7 pod OpenVZ nám běží, několik poznámek k tomu jsme
>> dali do znalostní báze
>> https://kb.vpsfree.cz/navody/server/nextcloud_docker_centos. Současný stav
>> je již trošku odlišný, např. máme Redis v dalším kontejneru, ale základ
>> stále platí. V podstatě spokojenost, dělá to, co jsme požadovali (žádné
>> extrémní požadavky na výkon jsme neměli).
>> Přeju pěkný den,
>> O. Stefan
>>
>>
>> Zdravím vespolek. Zkoušel jste někdo rozchodit Docker na CentOS 7 (obdobně
>> jako na Debian 8 <https://kb.vpsfree.org/manuals/server/docker_for_debian>)?
>> Zprávy o úspěchu vítány dvojnásob ;)
>>
>> ;?
>>
>>
>>
>> _______________________________________________
>> Community-list mailing list
>> Community-list at lists.vpsfree.cz
>> http://lists.vpsfree.cz/listinfo/community-list
>>
>>
>>
>>
>> _______________________________________________
>> Community-list mailing list
>> Community-list at lists.vpsfree.cz
>> http://lists.vpsfree.cz/listinfo/community-list
>>
>>
>>
>> _______________________________________________
>> Community-list mailing list
>> Community-list at lists.vpsfree.cz
>> http://lists.vpsfree.cz/listinfo/community-list
>>
> _______________________________________________
> Community-list mailing list
> Community-list at lists.vpsfree.cz
> http://lists.vpsfree.cz/listinfo/community-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vpsfree.cz/pipermail/community-list/attachments/20170428/f3058774/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://lists.vpsfree.cz/pipermail/community-list/attachments/20170428/f3058774/attachment.sig>


More information about the Community-list mailing list