Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

app-emulation/docker-17.03 to 17.06 containers issue

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
quad
n00b
n00b
Posts: 19
Joined: Tue Jan 23, 2007 9:17 pm

app-emulation/docker-17.03 to 17.06 containers issue

  • Quote

Post by quad » Wed Nov 15, 2017 12:45 am

Hi

I've just run into the problem of upgrading from app-emulation/docker-17.03 to 17.06 where my containers created in the prior version would not start in the new version. Now the problem is that I can't easily downgrade to 17.03 as this version has been removed from portage and 17.06 is the new stable. All of 17.06, 17.09 and 17.10 exhibit the same behavior. I'm trying to avoid deleting all my containers and redo all my work again.

After some research it seems to be a documented bug that has been fixed in last June/July.
  • https://github.com/docker/for-linux/issues/49
  • https://github.com/docker/docker-ce/pull/117
  • https://github.com/moby/moby/issues/33688
  • https://github.com/node-red/node-red-docker/issues/39
How can we fix the issue proplery under Gentoo? (avoid destroying containers) Couldn't find anything already filed in Bugs.

Thanks

Update: I've manually downloaded ebuilds required for docker, docker-runc and containerd and reinstalled 17.03, and the issue is still present. Does that mean that the containers themselves are now corrupted? This is puzzling.

The actual error is

Code: Select all

$ docker start wp-db
Error response from daemon: oci runtime error: container with id exists: c63520b696a8eb45c2e755ec8fea8b077feb749c1a9ffe516663206c56109d42
Error: failed to start containers: wp-db
The docker debug file shows:

Code: Select all

time="2017-11-15T02:35:59.357605111Z" level=error msg="containerd: start container" error="oci runtime error: container with id exists: c63520b696a8eb45c2e755ec8fea8b077feb749c1a9ffe51666320
6c56109d42\n" id=c63520b696a8eb45c2e755ec8fea8b077feb749c1a9ffe516663206c56109d42
time="2017-11-15T02:35:59.364434785Z" level=error msg="Create container failed with error: oci runtime error: container with id exists: c63520b696a8eb45c2e755ec8fea8b077feb749c1a9ffe51666320
6c56109d42\n"
time="2017-11-15T02:35:59.549463163Z" level=error msg="Handler for POST /v1.27/containers/wp-db/start returned error: oci runtime error: container with id exists: c63520b696a8eb45c2e755ec8fe
a8b077feb749c1a9ffe516663206c56109d42\n"
Update 2: Even more puzzling. Starting the same container a second time actually works. From what I can gather, running 17.03 over containers that have failed to start under 17.06+ perhaps reads the data structures with an error but will fix it properly for the second run. Or something like that.

Basically, here's my solution
  • Download older ebuilds for the required packages.
  • Stop Docker.
  • Hard-mask >=app-emulation/docker-17.06, >=app-emulation/docker-runc-1.0.0_rc3, >=app-emulation/containerd-0.2.9
  • Install docker-17.03.
  • Start Docker.
  • Start containers. Start them a second time if they fail the first time.
Aren't there any better way to fix this in gentoo?
Top
Post Reply
1 post • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic