Skip to content

tom2kota/docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

docker

Sample of project with Docker

docs


docker hub

samples of dockerfiles


docker tutorial

link


install docker Ubuntu

link

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
apt-cache policy docker-ce

sudo apt install docker-ce

sudo systemctl status docker

sudo docker run hello-world
docker search ubuntu
sudo docker pull ubuntu
sudo docker images
sudo docker run ubuntu

sudo docker run -it ubuntu

apt update
apt install nodejs
node -v
exit
docker ps
docker ps -a
docker ps -l
docker start 1c08a7a0d0e4
docker stop quizzical_mcnulty
docker rm youthful_curie

docker images
docker login -u docker-registry-username
docker push docker-registry-username/docker-image-name
docker pull sammy/ubuntu-nodejs

get docker

link

link

sudo apt-get update
sudo apt install curl
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    gnupg-agent \
    software-properties-common
    
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
   
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

apt-cache madison docker-ce

sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io
sudo apt-get install docker-ce containerd.io

sudo docker run hello-world


dockerfile #1

touch Dokerfile

versions of node

// Dokerfile

FROM node:carbon

CMD ["/bin/bash"]
sudo docker build -t tagnodeerbium .

sudo docker run -it tagnodeerbium
sudo docker run -it -d tagnodeerbium

node -v

sudo docker ps

sudo docker exec -it ff6904ff80fc bash
sudo docker stop ff6904ff80fc


exit

dockerfile #2

touch Dokerfile
// Dokerfile

FROM node:carbon

WORKDIR /usr/src/react-start

COPY ./ ./

RUN npm i

CMD ["/bin/bash"]
sudo docker build -t reactstart .

sudo docker run -it -p 3000:3000 reactstart
sudo docker run -it -d -p 3000:3000 reactstart

ls
npm start
 

About

Sample of project with Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published