Create Docker Machines on Bare Metal Cloud.
Bare Metal Cloud • API • Developers Portal • Knowledge Base • Support
- Bare Metal Cloud account
- Go
- 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.
NewDriver(): creates and returns a new instance of the PNAP drivergetClient(): creates the pnap API ClientGetCreateFlags(): returns the mcnflag.Flag slice representing the flags that can be set, their descriptions and defaults.DriverName(): returns the name of the driverSetConfigFromFlags(): configures the driver with the object that was returned by RegisterCreateFlagscreateSSHKey(): creates SSH keypublicSSHKeyPath(): SSH key path appended with ".pub"Create(): creates a host using the driver's configGetSSHHostname(): returns hostname for use with sshGetState(): returns the state that the host is in (running, stopped, etc)Kill(): force stop hostRemove(): removes hostRestart(): restarts host - this may just call Stop(); Start() if the provider does not have any special restart behaviorStart(): starts hostStop(): force stop hostPreCreateCheck(): allows for pre-create operations to make sure a driver is ready for creationGetSSHUsername(): returns username for use with ssh
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.
- Follow @phoenixNAP on Twitter
- Join the official Slack channel
- Sign up for our Developers Monthly newsletter
Get in touch with us if you have questions or need help with Bare Metal Cloud.

