0% found this document useful (0 votes)
5 views

Linux Command

The document discusses Docker commands like docker build, docker compose, and docker system info. It also covers Dockerfile, Docker hub, container networks, and detaching containers.

Uploaded by

lohitbhat
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Linux Command

The document discusses Docker commands like docker build, docker compose, and docker system info. It also covers Dockerfile, Docker hub, container networks, and detaching containers.

Uploaded by

lohitbhat
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

wc -l file.

txt -To check the word count


WC- l < filename - To check the word count only -8(output)
program 2> abc -2> to redirect the error
cat >> abc to append the file
ls -lra
alias e ="echo"
e Lohit -out put found
alias lr ="ls -lra"
lr it will show the same out put
bash/rc
nano .bachrc
NEWVARIABLE =Lohit
echo $NEWVARIABLE
unset NEWVARIABLE
export VAR=linux export is for global change
echo $HISTFILESIZE
echo $HISTSIZE
history
history -10
history | more
docker system info-Displays system wide info regarding docker instatllation

The docker build command is used to build a new image from a Dockerfile and a
"context".
The context is the set of files in a specified directory or URLs that the image is
built from.

Docker compose is a tool for defining and running multi-container Docker


applications. With Compose,
you define the services, networks, and volumes in a single docker-compose.yml file
and then use docker-compose up to start the entire application stack.

Docker hub is the default registry for docker

_d detaches container (Runs in background)

The --file or -f option allows users to specify a different Dockerfile than the
default one. For example, docker build -f MyDockerfile.
Bridge network-A network connecting containers to each other on the same host.

You might also like