0
1

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.

[CircleCI 2.0][Docker] CircleCI のローカル実行

0
Last updated at Posted at 2018-03-06

macOS High Sierra では、コンソールから下記のコマンドで Docker をローカル実行できます。

run-circleci.sh
$ cd /path/to/circleci # .circleci/config.yaml を 設置しているディレクトリに移動
$ curl -o /usr/local/bin/circleci https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci && chmod +x /usr/local/bin/circleci
$ circleci update
$ circleci build

ローカルに Docker が入ってないと

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. See 'docker run --help'.

みたいな感じで怒られるので、その場合は下記のコマンドで Docker をインストールして

install-docker.sh
$ brew cask install docker

こうするとアプリケーションに Docker がインストールされるので、 Docker のアイコンをクリックして起動。その後、以下のコマンドで立ち上げ。

run-docker.sh
$ docker ps

参考:

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?