Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
redhat:docker-redhat:start [2018/05/08 09:56] – michael | redhat:docker-redhat:start [2019/12/23 21:52] (current) – [Installation von Docker und Docker-Compose] michael | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Docker auf RHEL / CentOS 7 ====== | + | ====== Docker auf RHEL / CentOS 7/8 ====== |
**In this 3-article series, we will discuss about Docker**, is an '' | **In this 3-article series, we will discuss about Docker**, is an '' | ||
{{: | {{: | ||
+ | |||
+ | |||
+ | ===== Installation von Docker und Docker-Compose ===== | ||
+ | |||
+ | <WRAP center box 100%> | ||
+ | '' | ||
+ | # yum install -y yum-utils device-mapper-persistent-data lvm2 | ||
+ | # yum-config-manager --add-repo https:// | ||
+ | # yum update | ||
+ | |||
+ | # yum install docker-ce docker-ce-cli --nobest -y | ||
+ | |||
+ | # systemctl enable docker --now | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | |||
+ | # curl -L " | ||
+ | # chmod +x / | ||
+ | |||
+ | # curl -L https:// | ||
+ | |||
+ | # docker-compose version | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Installation Docker Environment ===== | ||
+ | |||
+ | <WRAP center box 100%> | ||
+ | '' | ||
+ | # mkdir / | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | # vim / | ||
+ | </ | ||
+ | |||
+ | <wrap em>DEMO - Docker Compose File:</ | ||
+ | <sxh yaml> | ||
+ | version: " | ||
+ | |||
+ | services: | ||
+ | # ---------------------------------------------------------------------------- | ||
+ | pihole: | ||
+ | image: IMAGE/ | ||
+ | container_name: | ||
+ | volumes: | ||
+ | - / | ||
+ | - / | ||
+ | environment: | ||
+ | - VARIABLE1=value_xy | ||
+ | - VARIABLE2=value_xy | ||
+ | #ports: | ||
+ | # - 53:53/tcp | ||
+ | # - 53:53/udp | ||
+ | # - 67:67/udp | ||
+ | # - 81:80 | ||
+ | #networks: | ||
+ | # - local | ||
+ | | ||
+ | restart: always | ||
+ | network_mode: | ||
+ | |||
+ | # ------------------------------------------------------------------------------ | ||
+ | #networks: | ||
+ | # local: | ||
+ | # driver: bridge | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | # docker-compose -f / | ||
+ | # docker-compose -f / | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP center round important 100%> | ||
+ | '' | ||
+ | In order to give a container access to files protected by SELinux, you need to use one of the following volume options: z or Z. | ||
+ | |||
+ | * '' | ||
+ | |||
+ | * '' | ||
+ | </ | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | |||
+ | FIXME | ||
<WRAP center round box 100%> | <WRAP center round box 100%> | ||
Line 27: | Line 122: | ||
https:// | https:// | ||
- | <WRAP center round tip 100%> | ||
- | **Baseimages: | ||
- | * '' | ||
- | |||
- | ---- | ||
- | |||
- | **Interessante Docker Projekte:** | ||
- | * '' | ||
- | * '' | ||
- | </ | ||