2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【備忘録】よく使うDockerコマンド・ウェブサイト

Last updated at Posted at 2019-05-30

###使う利点
・Security:複数人環境での環境の際をなくす
・Speed:開発環境の構築までのスピードを早くする

起動中のDockerコンテナの表示

docker ps

Docker-composeファイルの全削除

コンポーザーのアップデート
$composer update
全コンテナ停止
$docker stop (docker ps −q)
全コンテナ削除
$docker rm (docker ps −q −a)
全イメージ削除
$docker rmi (docker images −q)
laradock追加 
$docker-compose up -d mysql nginx php-fpm workspace

Dockerコンテナに入る

$docker exec -it [コンテナ名] bash

mysqlにアサイン

$mysql −u root −p
$use [データベース名]
$show tables;
$drop table [テーブル名];
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?