Tutorial

Run Docker Exec Commands on Decentralized Container

Run a 'docker exec' command to execute command line applications

Install and run Planetr Gateway on your computer

To install Planetr gateway on your computer, please read the Get Started section. This can be achieved on a laptop, a desktop computer, or a cloud instance.

Install and run the demo docker image on Planetr decentralized cloud

Make sure Planetr gateway is installed and running on your computer.

$ planetr dcu-ps

Create and run a decentralized compute unit (DCU) on Planetr network

$ planetr dcu-run planetrio/demo-exec g.micro
INSTANCE ID STATUS TYPE IMAGE NAME PORTS CREATED AT
c1tafjn2hraq06kud0bg Pending g.micro planetrio/demo-exec 2021-04-17T14:48:06.568676+05:30

Please wait for the status to become 'Running'

$ planetr dcu-ps
INSTANCE ID STATUS TYPE IMAGE NAME PORTS CREATED AT
c1tafjn2hraq06kud0bg Running g.micro planetrio/demo-exec 2021-04-17T14:48:06.568676+05:30

planetrio/demo-exec docker image has two commands reverse and capitalize in /home folder

$ planetr dcu-exec c1tatan2hraq6c4g3rlg '/home/reverse "TOM AND JERRY"'
YRREJ DNA MOT

Delete the DCU.

$ planetr dcu-rm c1tatan2hraq6c4g3rlg
INSTANCE ID STATUS TYPE IMAGE NAME PORTS CREATED AT
c1tatan2hraq6c4g3rlg Deleting g.micro planetrio/demo-exec 2021-04-17T14:48:06.568676+05:30

Check status again.

$ planetr dcu-ps
INSTANCE ID STATUS TYPE IMAGE NAME PORTS CREATED AT

Project source at: GitHub