start new:
tmux
start new with session name:
tmux new -s myname
Learn Docker and Kubenetes | |
1. Docker image: a template for creating an emvironment. An image contains: OS, software, App Code. | |
2. Docker container: is a running instance of an image | |
3. Docker hub is a registry : a place where we use to download images | |
Practicing with docker | |
PULL , RUN, SHOW | |
1. docker pull nginx Pull the latest tag of nginx image | |
2. docker run nginx:latest Run image nginx with latest tag to CONTAINER (terminal hanging) |
Note: I'm planning to revise this and looking for a new co-author to help with expanding this into a more comprehensive guide. While it's very popular, it could be broader and a bit deeper. If you like to write and are close to being an expert on this material and willing to consider helping, please drop me a note at josh (0x40) holloway.com. –jlevy, Holloway. Thank you!
These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.
Create an account at Linode
Click on Create Linode
Choose your server options (OS, region, etc)
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test