docker rename
安全コンテナ名の変更
docker rename <old> <new>
コンテナ名を変更。自動生成名を運用名に揃え、誤操作(別コンテナの停止等)を防ぐ整理に。
実行例
docker rename eager_morse web-prod運用名へ変更
書式
docker rename <old> <new>
実行前の注意
名前のみ変更。
関連コマンド
- docker psコンテナ一覧
- docker runコンテナ起動
安全コンテナ名の変更
docker rename <old> <new>
コンテナ名を変更。自動生成名を運用名に揃え、誤操作(別コンテナの停止等)を防ぐ整理に。
docker rename eager_morse web-prod運用名へ変更docker rename <old> <new>
名前のみ変更。