9
10

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の未使用ポートで"port has already been allocated"が出たらサービス再起動すべし(メモ)

Last updated at Posted at 2014-08-21

#参考ページ

CentOS 7/docker1.0.0でハマったところメモ.

#あらまし
結構頻発するんですよね、この現象。「sudo docker run -p xxxx:80 --name foo/bar」と入れても、xxxxが使用中だよーと怒られます。そして溜まっていく未稼働コンテナ。

#どう対処するか
dockerの再起動。

##コマンド
systemctl restart docker

#補足
CentOS7で使われているsystemctlについて少しまとめた
恥ずかしながら、systemdを初めて知りました。
だってubuntuだとまだexperimentalなんだもん。

9
10
1

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
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?