Skip to content

Failed to start container: id already in use (after reboot) #38249

@ankul-shippable

Description

@ankul-shippable

Description
Container with restart=always fails to restart after machine is rebooted

Steps to reproduce the issue:

  1. Install docker version 18.03.1-ce on ubuntu 16.04 LTS machine.
  2. Start a container with restart=always
  3. Reboot the machine several times.

Describe the results you received:
After sometime our container does not restart and fails with the error:

Nov 12 04:59:42 node-962a1238 dockerd[1290]: time="2018-11-12T04:59:42.510523865Z" level=info msg="Removing stale sandbox bf8038ecbf612879caeaa224f80f9995b6f62409cf66ac45fc707b96204d7afc (79c6ec76a773791ea3cdcbc88c9664ccfc0580a5c8a73faf12f23a1dd2323879)"
Nov 12 04:59:42 node-962a1238 dockerd[1290]: time="2018-11-12T04:59:42.542730939Z" level=info msg="Removing stale endpoint reqProc-5be8e8137551a306007999a1 (d553bcbfc82c4e9fb776fddf1bf9f77595a8936234132c731c9dbc2d839c78a0)"
Nov 12 04:59:42 node-962a1238 dockerd[1290]: time="2018-11-12T04:59:42.547410154Z" level=info msg="Fixing inconsistent endpoint_cnt for network bridge. Expected=0, Actual=1"
Nov 12 04:59:42 node-962a1238 dockerd[1290]: time="2018-11-12T04:59:42.611847891Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
Nov 12 04:59:42 node-962a1238 dockerd[1290]: time="2018-11-12T04:59:42.999414691Z" level=error msg="Failed to start container 79c6ec76a773791ea3cdcbc88c9664ccfc0580a5c8a73faf12f23a1dd2323879: id already in use"

Additional information you deem important (e.g. issue happens only occasionally): It happens randomly.

Output of docker version:

Client:
 Version:      18.03.1-ce
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   9ee9f40
 Built:        Thu Apr 26 07:17:20 2018
 OS/Arch:      linux/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.03.1-ce
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.5
  Git commit:   9ee9f40
  Built:        Thu Apr 26 07:15:30 2018
  OS/Arch:      linux/amd64
  Experimental: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions