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 :: get program path powershell 
Shell :: Set Up Your Username and Email in Git Command 
Shell :: jq filter by key 
Shell :: npm install firebase @angular/fire 
Shell :: install babel language 
Shell :: IDE for work marckdown file on ubuntu 
Shell :: add user linux 
Shell :: how to access folder using command on git bash terminal 
Shell :: git percentage of authorship 
Shell :: sudo -s su root in one line 
Shell :: ubuntu battery and network utilities install 
Shell :: linkerd kubernetes 
Shell :: linux cannot upgrade pip 
Shell :: unable to open image permission denied 
Shell :: bluettoth device not shwoing as output in ubuntu 
Shell :: powershell download file from api url 
Shell :: Install Chef Habitat from the Command Line 
Shell :: how to auto cd into git repo 
Shell :: top show specific pid 
Shell :: fatal: malformed object name HEAD 
Shell :: disban camera ubuntu 
Shell :: fetch only one branch 
Shell :: SystemError: GPU device not found site:stackoverflow.com 
Shell :: how to compile semaphore.h in terminal 
Shell :: c pipe 2 arguments 
Shell :: /dev/block/mmcblk0p38 
Shell :: how to upload a file to github with 777 permissions from UI 
Shell :: linssid linux mint 20 
Shell :: git bash authentication failed not asking for password 
Shell :: metasploit reverse shell 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =