Comments (10)
Starting a new formula for Docker CE could be wise. Thoughts?
from docker-formula.
out with the old in with the new
from docker-formula.
Has anything happened with regard to supporting docker-ce from download.docker.com?
Looks like there should be something like use_download_repo
(or use_new(er)_repo
) with https://github.com/lock8/docker-formula/blob/f9ae050ec9792dedf2a8108c6df80c153545fd68/docker/init.sls#L19-L33.
from docker-formula.
Can you provide details of the errors you are getting on CentOS 7?
from docker-formula.
Ofcourse I can provide details.
The first problem is that formula always enable old docker repository and it should be at least a option to disable this behavior. We are using red hat satellite/spacewalk for local mirroring of packages so we don't want to fetch packages from external mirrors.
The second problem connected with first problem is that formula is using old repository and after release of docker community/enterprise edition new repository is under: https://download.docker.com/linux/centos/7/x86_64/stable/.
The third problem is that formula is not working with new repository propably because of fact that docker-engine package was renamed to docker-ce:
----------
ID: docker package
Function: pkg.latest
Name: docker-engine
Result: False
Comment: No information found for 'docker-engine'.
Started: 09:35:06.809329
Duration: 2603.389 ms
Changes:
----------
ID: docker-service
Function: service.running
Name: docker
Result: False
Comment: One or more requisite failed: docker.docker package
Started:
Duration:
Changes:
The fourth problem for consideration is that in my opinion pkg.latest should not be the default state for package installation. Maybe it could be better to use pkg.installed and have a option to enable auto-update ?
from docker-formula.
I found that there is lookup
for Docker package, far away from good Salt conventions:
{% set pkg = salt['pillar.get']('docker-pkg:lookup', default={}, merge=True) %}
This should be inside docker:lookup
called something like name
or pkg_name
or something similar like in other formulas like that.
from docker-formula.
Oh wait… this pkg
is used nowhere!
from docker-formula.
This formula does use Docker's upstream repo if you set the version pillar to a newer version.
This formula does not yet support the new style of CE/EE package names. This is true right now for any OS. We should leave this issue to that problem only. Please open up separate issues the other items.
I think this is a great time to talk about conventions. In an exert from the linked page about MySQL Formula, it shows that formula using a map.jinja
. However, in [mysql-formula], at this moment, there is no map.jinja
. It uses a defaults.yaml
and imports that across the formula. This poses a question: What is the convention?
SaltStack Inc has given the community a guide. But it is just that: a guide. The conventions depend on the people that maintain and submit to a particular formula.
@morsik pkg
in map.jinja
is merged into the defaults that are imported into other states. It is used for things like changing the docker
Python package versions and configuring arguments to the Docker sysvinit or upstart service. You may think that it is used to change the package name, but that is not the case.
from docker-formula.
If pkg name could be moved to map.jinja with ability to override it with pillar key similar to docker:lookup:pkg then it should work with docker community edition.
from docker-formula.
@blbradley: doesn't make any sence since Docker CE and old Docker all fully compatible with each other. They are have just different repos and names.
from docker-formula.
Related Issues (20)
- [Question] Windows support id command not found HOT 3
- Compose.ng: Removed Container Remains HOT 1
- [BUG] Setting ports for container throws the error: is not a valid port definition HOT 4
- [JFROG] bintray is gone away - docker-compose state failed HOT 5
- [BUG] segmentation fault from dockerd on fresh Pi 4 HOT 1
- [BUG] Failing on downloading docker binary from dl.bintray.com: HTTP 403: Forbidden HOT 1
- [FEATURE] Ability to change cgroupdriver to systemd HOT 3
- [FEATURE] Ability to install Docker deb package using apt-get repo on Debian/Ubuntu Linux HOT 3
- [BUG] pillar wanted breaking state when compose not included HOT 3
- [FEATURE] docker group created (mininium) & user added (optional) HOT 1
- [BUG] pip.installed fails on Windows HOT 1
- [FEATURE] Manage "driver" and "driver_opts" in docker.networks.install state HOT 1
- [BUG] CI failing due to tumbleweed repo issue
- [BUG] Environ settings ignored by upstream docker service HOT 2
- [BUG] Unable to install docker compose after upstream removed .SHA256 checksums in newest version HOT 1
- [BUG] daemon reloads on every run of salt HOT 1
- Privileged container Issue with python3-docker package on Ubuntu 22.04 HOT 1
- [BUG] Network specification should be a dict not list
- [BUG] docker_* states not available with onedir salt install
- almalinux el9 [BUG] - deps fail to install (iptables)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-formula.