mesosphere-backup / mesos-slave-dind

Mesos Slave with Docker-in-Docker
Apache License 2.0
12 stars 6 forks source link

Mesos Slave Docker-in-Docker (dind)

Mesos-Slave that runs in a Ubuntu-based Docker container.

Launches tasks using the included Docker Engine, rather than the host's Docker Engine.

Features

Networking

There are two networking mode options: default & bridged.

By default, the inner docker daemon gets its own network. These inner container IPs will not be accessible by the host.

Bridged networking mode can be enabled by populating DOCKER_NETWORK_OFFSET (env var). In bridged networking mode, containers launched by the inner docker daemon will be given IPs on the host docker network. This requires reserving a range of IPs on the host docker network for each mesos-slave-dind container by specifying an offset (DOCKER_NETWORK_OFFSET) and a size (DOCKER_NETWORK_SIZE). The offset should be specific to the container, and the range (offset <-> offset + size - 1) should not overlap with other reserved ranges.

Required Docker Parameters

Recommended Environment Variables

Source: https://github.com/mesosphere/mesos-slave-dind

Inspiration: https://github.com/jpetazzo/dind

License

Copyright 2015-2018 The Mesos Slave Docker-in-Docker Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.