Docker Machine Driver Plugin for Bare Metal Cloud
Create Docker Machines on Bare Metal Cloud.
Bare Metal Cloud •
API •
Developers Portal •
Knowledge Base •
Support
Requirements
- Go to the Bare Metal Cloud signup page.
- Follow the prompts to set up your account.
- Use your credentials to log in to Bare Metal Cloud portal.
▶ Video tutorial: How to Create a Bare Metal Cloud Account in Minutes
▶ Video tutorial: How to Deploy a Bare Metal Server in a Minute
Available functions
NewDriver()
: creates and returns a new instance of the PNAP driver
getClient()
: creates the pnap API Client
GetCreateFlags()
: returns the mcnflag.Flag slice representing the flags that can be set, their descriptions and defaults.
DriverName()
: returns the name of the driver
SetConfigFromFlags()
: configures the driver with the object that was returned by RegisterCreateFlags
createSSHKey()
: creates SSH key
publicSSHKeyPath()
: SSH key path appended with ".pub"
Create()
: creates a host using the driver's config
GetSSHHostname()
: returns hostname for use with ssh
GetState()
: returns the state that the host is in (running, stopped, etc)
Kill()
: force stop host
Remove()
: removes host
Restart()
: restarts host - this may just call Stop(); Start() if the provider does not have any special restart behavior
Start()
: starts host
Stop()
: force stop host
PreCreateCheck()
: allows for pre-create operations to make sure a driver is ready for creation
GetSSHUsername()
: returns username for use with ssh
API Credentials
Follow these steps to obtain your API authentication credentials.
- Log in to the Bare Metal Cloud portal.
- On the left side menu, click on API Credentials.
- Click the Create Credentials button.
- Fill in the Name and Description fields, select the permissions scope and click Create.
- In the table, click on Actions and select View Credentials from the dropdown to view the Client ID and Client Secret.
Bare Metal Cloud Quick Start Guide: https://developers.phoenixnap.com/quick-start
Become part of the Bare Metal Cloud community to get updates on new features, help us improve the platform, and engage with developers and other users.
Resources
Documentation
Get in touch with us if you have questions or need help with Bare Metal Cloud.
Twitter •
Facebook •
LinkedIn •
Instagram •
YouTube •
Email