Jul 18, 2024
docker version
docker run -it <image>
docker build
, docker run
, docker images
or docker image ls
hello_docker
containing a simple app.js
node:alpine
)pwd
: Print working directoryls
: List files and directoriescd [path]
: Change directorymkdir [directory]
: Create a new directorytouch [file]
: Create an empty filerm [file]
: Remove a filenano [file]
: Open a text editor to edit filescat [file]
: Display content of a fileecho [text] > [file]
: Write text to a fileapt-get update
: Update package listapt-get install [package]
: Install a packageapt-get remove [package]
: Remove a packagenano
, cat
, more
, less
, head
, and tail
>
for output redirectioncat file1 file2 > combined_file
grep