The flannel container
- Dockerfile 53.5%
- Shell 46.5%
Dockerfile: - update labels - use fqn for FROM config.json.template: - update oci version - update capabilities for new runc version service/run.sh - update to use systemd-notify |
||
|---|---|---|
| .gitignore | ||
| config.json.template | ||
| Dockerfile | ||
| flanneld-run.sh | ||
| manifest.json | ||
| README.md | ||
| service.template | ||
| sources | ||
| tmpfiles.template | ||
flannel-container
This container image is intended to be run as a system container with the atomic command line.
Building flannel container for fedora and atomic host:
# git clone https://github.com/projectatomic/atomic-system-containers
# cd atomic-system-containers/flannel
# docker build -t flannel .
Running as system container, with the atomic CLI:
Prerequisite:
-
etcd must be running
-
a network is configured in etcd
(example with etcd installed as a system container: runc exec etcd etcdctl set /atomic.io/network/config '{"Network":"172.17.0.0/16"}')
Pull from local docker into ostree:
#atomic pull --storage ostree docker:flannel
Install the container:
#atomic install --system flannel
Start as a systemd service:
#systemctl start flannel
Stopping the service
#systemctl stop flannel
Removing the container
#atomic uninstall flannel