The etcd container
  • Dockerfile 60.8%
  • Shell 39.2%
Find a file
yuqi-zhang 13e76aa752 Update master branch to upstream
Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>
2017-09-06 15:08:03 -04:00
.gitignore Initial setup of the repo 2017-02-22 17:00:13 +00:00
config.json.template Update master branch to upstream 2017-09-06 15:08:03 -04:00
Dockerfile Update master branch to upstream 2017-09-06 15:08:03 -04:00
etcd-env.sh Update master branch to upstream 2017-09-06 15:08:03 -04:00
install.sh Initial import (#1421856). 2017-02-22 15:30:28 -05:00
LICENSE Initial import (#1421856). 2017-02-22 15:30:28 -05:00
manifest.json Update master branch to upstream 2017-09-06 15:08:03 -04:00
README.md Initial import (#1421856). 2017-02-22 15:30:28 -05:00
service.template Initial import (#1421856). 2017-02-22 15:30:28 -05:00
tmpfiles.template Initial import (#1421856). 2017-02-22 15:30:28 -05:00
uninstall.sh Initial import (#1421856). 2017-02-22 15:30:28 -05:00

etcd-container

Building etcd container for fedora and atomic host:

# git clone https://github.com/projectatomic/atomic-system-containers
# cd atomic-system-containers/etcd
# docker build --rm -t etcd .

As a docker container:

Instructions for Fedora

Running etcd container

#docker run -d -p 4001:4001 -p 7001:7001 -p 2379:2379 -p 2380:2380 etcd

Instructions for Atomic

Installing etcd container on atomic host:

#atomic install etcd

Running etcd container on atomic host:

#atomic run etcd

Stopping etcd container on atomic host:

#atomic stop etcd

Uninstalling etcd container on atomic host:

#atomic uninstall etcd

As a system container, with the atomic CLI:

Pull from local docker into ostree:

#atomic pull --storage ostree docker:etcd

Install the container:

#atomic install --system etcd

Start as a systemd service:

#systemctl start etcd

Stopping the service

#systemctl stop etcd

Removing the container

#atomic uninstall etcd