Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Docker installs Fig


May 22, 2021 Docker From entry to practice


Table of contents


Install Fig

First, install 1.3 or the updated Docker version.

If your work environment is OS X, you can complete the installation of Docker and boot2docker by checking the Mac installation guide. Once boot2docker is running, follow the instructions below to set an environment variable, and then Fig can interact with it.

$(boot2docker shellinit)

If you want to avoid reset after the restart, you can add the above command to ~/.bashrc file.

For Ubuntu 其它的平台 platforms, refer to the Ubuntu installation guide (Chinese) and the official installation manual .

Next, install Fig:

curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig

If your Docker is installed as an administrator, the above commands may also require the same identity.

Currently, Fig is only available for OSX and 64-bit Linux systems. However, because it is written in the Python language, the installation can be done with the Python installation package for users on other platforms (the same applies to supported systems).

$ sudo pip install -U fig

It's done by this point. Perform fig --version that it is working properly.