Blame README.md

5ca44ec
# docker
5ca44ec
5ca44ec
This is the docker daemon system container for Fedora systems based on the moby project.
5ca44ec
For more information refer to: https://github.com/moby/moby
5ca44ec
5ca44ec
Note this only provides the *daemon process*, and does not include CLI tools. The current use
5ca44ec
case for this would be switching between different versions of docker by updating the container.
5ca44ec
5ca44ec
## Building the image from source:
5ca44ec
5ca44ec
```
5ca44ec
# git clone https://github.com/projectatomic/atomic-system-containers
5ca44ec
# cd atomic-system-containers/docker-fedora
5ca44ec
# docker build -t docker .
5ca44ec
```
5ca44ec
5ca44ec
## Running the system container, with the atomic CLI:
5ca44ec
5ca44ec
Pull from registry into ostree:
5ca44ec
5ca44ec
```
5ca44ec
# atomic pull --storage ostree $REGISTRY/docker
5ca44ec
```
5ca44ec
5ca44ec
Or alternatively, pull from local docker:
5ca44ec
5ca44ec
```
5ca44ec
# atomic pull --storage ostree docker:docker:latest
5ca44ec
```
5ca44ec
5ca44ec
Install the container:
5ca44ec
5ca44ec
Currently we recommend using --system-package=no to avoid having rpmbuild create an rpm file
5ca44ec
during installation. This flag will tell the atomic CLI to fall back to copying files to the
5ca44ec
host instead.
5ca44ec
5ca44ec
```
5ca44ec
# atomic install --system --system-package=no --name=docker ($REGISTRY)/docker
5ca44ec
5ca44ec
Note that if you have the package docker locally, you would need to use another
5ca44ec
name for the service (i.e. --name=docker-system-container, etc.)
5ca44ec
```
5ca44ec
5ca44ec
Start as a systemd service:
5ca44ec
5ca44ec
```
5ca44ec
# systemctl start docker
5ca44ec
```
5ca44ec
5ca44ec
Stopping the service
5ca44ec
5ca44ec
```
5ca44ec
# systemctl stop docker
5ca44ec
```
5ca44ec
5ca44ec
Removing the container
5ca44ec
5ca44ec
```
5ca44ec
# atomic uninstall docker
5ca44ec
```