docker commands
-- Sam 13:02 19/02/2020

  1. nvm install [node 版本號] - 安裝特定版本的 nvm
  2. nvm list - 列出已安裝清單
  3. nvm use [node 版本號]
-- Sam 13:30 04/02/2021
  1. curl -v -X POST https://api.sandbox.paypal.com/v2/checkout/orders \
  2. curl -v https://api.sandbox.paypal.com/v1/oauth2/token -H "Accept: application/json" -H "Accept-Language: en_US" -u "AcEkcPFFkElC0qzAacfvBobtUwNxxb85_I7-eUddJqQM6_xzWji8V4qAftA9BbZqqhbA825ZmnLY9DVr:EOVmL4X9qDK9PBatXRt2k5gZoJlMpw-WNWjEwRvmpvJHo5bmfBcQYH6G1-eLoYiEiIIUYqDsRhxb1gjl" -d "grant_type=client_credentials" 
  3.  curl -v -X POST https://api.sandbox.paypal.com/v1/payment-experience/web-profiles/ -H 'Authorization: Bearer <Access-Token>' -d '{
  4. >>   "name": "ebayProfile",
  5. >>   "presentation":
  6. >>   {
  7. >>     "logo_image": "https://www.paypal.com"
  8. >>   },
  9. >>   "input_fields":
  10. >>   {
  11. >>     "no_shipping": 1,
  12. >>     "address_override": 1
  13. >>   },
  14. >>   "flow_config":
  15. >>   {
  16. >>     "landing_page_type": "billing",
  17. >>     "bank_txn_pending_url": "https://www.paypal.com"
  18. >>   }
  19. >> }'
-- Sam 19:24 03/02/2021
  1. kubectl get nodes
  2. kubectl get namespaces
  3. kubectl get pods
  4. kubectl get services
  5. kubectl describe pod [pod name]
  6. kubectl describe node [node name]
  7. kubectl logs
  8. kbuectl api-resources
  9. kubectl config use-context docker-desktop
  10. ------------------------------------------------------
  11. helm get all istio-system -n istio-system
  12. helm get values istio-system -n istio-system
  13. helm get all default
  14. helm list --namespace default
  15. helm list --all-namespaces
  16. helm list -alll -defaut
  17. -------------------------------------------------
  18. choco upgrade kubernetes-helm skaffold docker-desktop istioctl gcloudsdk -y
  19. wsl --set-default-version 2
-- Sam 19:19 03/02/2021
  1. skaffold run
  2. skaffold dev
-- Sam 19:22 03/02/2021
 Question:
  1. where does luarocks install --tree /opt/lua_modules lua-resty-jwt 0.2.0-0 install files to ? -------/opt/lua_modules/share/lua/5.1
  2. how to generatee a docker image with docker file, how does dockerfile work?
-- Sam 15:01 19/02/2020
Docker commands
  1. docker-compose up -d //run the bat of docker
  2. docker build -t [image的名字] .
    1. //根据当前目录下的docker file,制作一个docker image,注意-t 后面跟的不是tag而是image的名字
    2. 还可以用-f 来指定docker文件的位置,一般就用 .(点)来表示当前目录比较方便,不易错。
  3. docker exec -it b52d8c8b94d4 /bin/bash //go into docker
  4. docker run -d -p 80:80 --name docker-tutorial docker101tutorial
  5. docker tag [who] [what]:比如:
  6. docker push casproteus/docker101tutorial
  7. docker images = docker image list = docker image ls //list all docker image
  8. docker ps = docker container list //list running docker container
  9. docker network list
  10. docker network inspect [network name]
  11. docker run -dit --name my_proj6 --network bridge [networkid]
  12. docker attach [container name]
  13. docker stop [container name]
  14. docker container prune
  15. docker image prune -a
  16. docker rm image mysql/mysql-server
-- Sam 11:51 31/03/2023

Please click here to login and add comments! || automatically refresh content every seconds