How do I force a docker to start with a defined USB device which is not currently active?

Recommended Posts

I have a docker Template I'm using for octoprint and defined my printer with a new device type with this path "/dev/ttyUSB0".

Now if the printer is turned on, everything works correctly.  The docker container starts and I can see my printer.  If I power off my printer, I lose connection to it in octoprint, and if I power it on, I can once again connect!

The problem lies however is if I power off my printer and then stop/restart the docker.  The container wont start up.  Since it cant detect the USB device (Because its off and doesnt exist) the docker fails to initialize and says bad execution error.  How can I force the container to start up even tho it cant see the device thats defined in the template?

Edited by 007craft
Link to comment
  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.