sudo docker images to see what version of docker you are running

pred@instance-1:/path/Blog/themes$ sudo docker images
REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
ghost                 alpine              efe90b499735        9 days ago          425MB
jwilder/nginx-proxy   latest              0f74bh924b37        2 weeks ago         148MB
jwilder/nginx-proxy   alpine              db9682e674r5        2 months ago        53.6MB

sudo docker ps - shows all the pods

pred@instance-1:/path/Blog/themes$ sudo docker ps
CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS              PORTS     
                                 NAMES
10677f30368n        ghost:alpine          "docker-entrypoint.s…"   3 days ago          Up 3 days           2368/tcp  
                                 blog
ada74376b934        jwilder/nginx-proxy   "/app/docker-entrypo…"   3 days ago          Up 3 days           0.0.0.0:80
->80/tcp, 0.0.0.0:443->443/tcp   nginx-proxy

Docker logs instance number – to get more information about container

pred@instance-1:/path/Blog/themes$ sudo docker logs 10677f30120b | more
level:normal
UnauthorizedError: Access denied.
    at new UnauthorizedError (/var/lib/ghost/versions/2.0.3/node_modules/ghost-ignition/lib/errors/index.js:101:23)
    at authenticate (/var/lib/ghost/versions/2.0.3/core/server/services/auth/authenticate.js:88:33)
    at allFailed (/var/lib/ghost/versions/2.0.3/node_modules/passport/lib/middleware/authenticate.js:107:18)
    at attempt (/var/lib/ghost/versions/2.0.3/node_modules/passport/lib/middleware/authenticate.js:180:28)
    at Strategy.strategy.fail (/var/lib/ghost/versions/2.0.3/node_modules/passport/lib/middleware/authenticate.js:297
:9)

To remember which docker commands you ran previously use command:

history | grep docker

To remove a pod in docker:

sudo docker rm -f docker container ID

Command to restart docker container image:

sudo docker run --restart=always -d -e 'ROOT_URL=https://site domain' -e 'VIRTUAL_HOST=site domain' -e 'NODE_ENV=production' --expose chosen port -v /home/Blog:/var/lib/ghost/content:rw ghost:alpine

To instruct localhost to point back to blog:

sudo docker run --restart=always -d -e 'ROOT_URL=https://site domain' -e 'VIRTUAL_HOST=site domain' -e 'NODE_ENV=production' -e 'url=https://site domain' --expose chosen port -v /home/Blog:/var/lib/ghost/content:rw ghost:alpine

Curl local host port 3001 to see if blog is running