Open senglert7 opened 6 years ago
I still see this with:
Server: Docker Engine - Community
Engine:
Version: 20.10.6
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 8728dd2
Built: Fri Apr 9 22:43:57 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.4
GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
runc:
Version: 1.0.0-rc93
GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
docker-init:
Version: 0.19.0
GitCommit: de40ad0
This recent version (20.10.10) just reports that Error response from daemon: invalid restart policy 'none'
,
in contradiction to the documentation.
Server: Docker Engine - Community
Engine:
Version: 20.10.10
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: e2f740d
Built: Mon Oct 25 07:41:30 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.11
GitCommit: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Expected behavior
A Container with the following configuration should never restart after finishing:
This configuration I placed into a .yml-file and starting with 'docker stack deploy...'
Actual behavior
Container does not restart when his task is over, which is good. Container does restart when you restart the docker daemon, which is not expected.
Steps to reproduce the behavior
Start the above mentioned .yml config with 'docker stack deploy...'. Use any image instead of 'test'.
Output of
docker version
:Output of
docker info
:Additional details With my application there is a service/container that should run only once. It initialized the database, which means even when the Docker host crashes and must be restarted, I dont want to run it again or else the Database gets reset.