diff --git a/data/docker.md b/data/docker.md index 865ea5f..21ff05d 100644 --- a/data/docker.md +++ b/data/docker.md @@ -45,7 +45,8 @@ version | `docker --version` Run Docker Image |`doker run -it `
or
`docker run -it /bin/bash`

Node.js ≡ `docker run -it node:lts-slim /bin/bash`
Python ≡ `docker run -it python /bin/bash` Create Docker file| `touch dockerfile`
need to install `touch-cli` globally Show all Docker Images | `docker images` -Show all Docker Containers | `docker ps -a` +Show all Docker Containers Info | `docker ps -a` +Show Running Docker Containers Info | `docker ps` Create Docker Images | `docker build -t .`
Run this with in your application directory where you crate the docker file Run Docker Images / Create Docker Container | `docker run --name -p : ` Start Docker Container | `docker container start ` diff --git a/data/gitLearning.md b/data/gitLearning.md index 1f8c016..e0fad92 100644 --- a/data/gitLearning.md +++ b/data/gitLearning.md @@ -58,8 +58,11 @@ Command | description `git diff ` > `.patch` | create patch file on a specific changes file
first run `git diff --name-only` and copy `fileName_including_path` `git apply .patch`
`git apply /.patch` | apply patch file **`12. git logs`**| -`git log --oneline` | Show the log of the repository +`git log --online` | Show the log of the repository `git log -n 1` | Check last commit History +**`13. git rename directory & file`**| +`git mv ` | Rename Directory/File Name (If directory/File Name is different) +`git mv temp`
`git mv temp `| Case-Sensitive Directory/File Name diff --git a/package.json b/package.json index 5adae0b..6f6dd9a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "docker:container": "docker run --name essential-command -p 12345:12345 essential-command:2.0.0", "docker:command": "npm run docker:clean && npm run docker:image && npm run docker:container", "docker:compose": "docker-compose build && docker compose up", - "docker:compose-restart": "docker-compose down && docker-compose up -d" + "docker:build": "docker-compose down && docker-compose build && docker-compose up -d" }, "node-version": { "node": "16.15.1"