Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker COMPOSE commands

docker-compose ps
docker-compose up
docker-compose down
Comment

docker compose command

docker-compose start
docker-compose stop
Comment

DOCKER COMPOSE command

!/Для выполнения данных команд нужжно находится в папке COMPOSE
docker compose up   //надо находится в папке compose с файлами: docker-compose.yml; dockerfile.txt
docker compose up --build  //команда если были изменения в коде и их надо применить
docker compose rm  //удаляет все контейнеры созданы командой up
docker compose down --rmi all //удаляет и образы и контейреры созданы командой up
docker compose up -d //detuch не входить в контейнер
docker compose up --abort-on-container-exit  //команда что б остановить контейнеры после завершения программы
docker compose up --abort-on-container-exit --build // что б внести изменения
Comment

docker COMPOSE commands

docker-compose start
docker-compose stop
Comment

docker COMPOSE commands

# docker-compose.yml
version: '2'

services:
  web:
    build: .
    # build from Dockerfile
    context: ./Path
    dockerfile: Dockerfile
    ports:
     - "5000:5000"
    volumes:
     - .:/code
  redis:
    image: redis
Comment

docker COMPOSE commands

docker-compose pause
docker-compose unpause
Comment

docker compose commands

docker-compose start
docker-compose stop

docker-compose pause
docker-compose unpause

docker-compose ps
docker-compose up
docker-compose down
Comment

docker compose command

docker-compose pause
docker-compose unpause
Comment

PREVIOUS NEXT
Code Example
Shell :: how to change ssh key for git 
Shell :: linux command line image converter 
Shell :: linux install toilet 
Shell :: debian install ab 
Shell :: docker compose busybox image 
Shell :: mamp mac php logs 
Shell :: install sonic visualizer ubuntu 
Shell :: quasar pug 
Shell :: how to install graphql client on manjaro linux 
Shell :: add string at the end of each line 
Shell :: how to remove directory with contents in w10 cmd 
Shell :: bash only start a service if not running 
Shell :: install tailwind using yarn 
Shell :: conda install libsndfile 
Shell :: tail file first 100 lines linux 
Shell :: install avagadro on linux 
Shell :: git core sshcommand 
Shell :: k8s dashboartd 
Shell :: use rebase in git command 
Shell :: install docker compose on centos 
Shell :: remove remote origin git 
Shell :: top running port 
Shell :: remove a filled directory in linux terminal 
Shell :: connect to a vm from cloudshell 
Shell :: git revert last 2 commits 
Shell :: heroku clone database local 
Shell :: shell create random mac 
Shell :: linux password expires date 
Shell :: where is upower linux 
Shell :: how to permanently install wifi drivers realtek 8723de in ubuntu 18.04 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =