Skip to content

Flatcar Basics

Decyphertek has secured your AWS AMI with one or more of the following open source software. Please reference the specific softare stack your server has. As a courteousy to AWS Subscribers this section can be used as a quick reference. AWSMP: Decyphertek

Note:

Please be aware that it takes a few minutes for the system to be up and running. The best way to check is to view the status check from the ec2 / instances / dashboard. If it says intializing, it is not ready yet.

SSH Into the server:

  • Linux + MAC - add .pem key to ~/.ssh/id_rsa > change permisisons > chmod 400 id_rsa
  • ssh core@ip-of-server
  • If using putty or mobaxterm make sure to convert .pem using puttygen.

Passwords - DB AND/OR User:

  • ssh into server
  • cat ~/.docker/.env
  • This will display the randomly generated passwords for DB AND/OR User.

Server Purchased:

  • We are working on providing specific server instructions in Read The Docs.
  • Some instrucitons exist in read the docs and some do not. Work in progress...
  • Please reference your instructions on AWS Marketplace for your purchased server.
  • Your welcome to provide any feedback , see contact.

Portainer - Manage Docker:

  • How to access Portainer to manage your containers > https://ip-of-server:9443
  • Follow the instructions to create a new admin account.
  • Caution - Portainer can timeout if you dont create an account fast enough
  • If this happens you need to restart the container, ssh into the server, then run. > docker restart portainer
  • Once logged into portainer, click get started and select local. You can manage docker from here.

Docker - Update Containers:

  • Caution: Make sure to back up any data and test the update in a staging environment before running these commands on a production server.
  • ssh into the server
  • cd .docker
  • docker-compose down
  • docker-compose pull
  • docker-compose up -d

Docker - Redeploy:

  • Optional: Troubleshooting - If you have issues and want to rebuild, delete via portainer.
  • Enable startup and reboot: sudo systemctl enable startup && sudo reboot

Manage Flatcar Linux:

  • Optional: Manaully update Flatcar. Updates will happen automatically.
  • If you want to manually check for updates run this command: update_engine_client -update

References:

https://docs.docker.com/
https://docs.portainer.io/
https://www.flatcar.org/docs/latest