Note You can run Controller/Registry docker containers on a Linux instance. We don't recommend that you run these containers on Mac hardware. If you want to run controller/registry on mac, then use the mac application package.
Move the anka-controller-registry-XXX.tar.gz
tar file to a directory where you want the containers to run.
config.yml
and enter values for the following : external_registry_address, data_mount_dir.
Note default port settings - Controller on port 80 and registry on port 8089../ankaCloudConfig docker fromFile
. This will update your docker-compose with configuration changes.docker-compose up -d --build
docker ps -a
to check if the anka controller and anka registry containers are up and running.Note If you want to change default port settings, don't edit config.yml
. Edit the advanced.yml
.
advanced.yml
configuration settings to edit for custom ports - external_registry_address, listen_on, data_mount_dir../ankaCloudConfig docker fromFile -i advanced.yml
docker-compose up -d --build
First, Download the latest anka-controller-registry-XXX.tar.gz from Anka Build Download page.
Then, execute the following steps.
Go to the controller/registry directory and execute docker-compose stop
.
Backup your existing config.yml
and advanced.yml
.
Uncompress the new controller/registry tar package.
Replace config.yml
and/or advanced.yml
with your backed up copies of these files.
Execute ./ankaCloudConfig docker fromFile
and/or ./ankaCloudConfig docker fromFile -i advanced.yml
Execute docker-compose up -d --build
docker-compose stop
.Anka controller is a server that usually runs as a daemon and errors are usually written to a log.
Check the output of docker ps
. The anka controller container status should be something like this.
“Up for x amount of time”. For example:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ae6b522fdec4 test220919_anka-controller "/bin/bash -c 'anka-…" 2 minutes ago Up 2 minutes 0.0.0.0:8090->80/tcp test220919_anka-controller_1
If the controller is crashing the status could be “restarting” or “failed”. Example for restarting state: “Restarting (1) 12 seconds ago”.
You can try to run docker-compose up
without any parameters and this will output stdout for all services to the screen.
In case one of the services is crashing you could see the errors.Here is an example.
anka-controller_1 | E1128 15:17:16.952500 1 main.go:618] Could not build tls configuration:
anka-controller_1 | E1128 15:17:16.953204 1 main.go:619] open /whwhwhw/path: no such file or directory
test220919_anka-controller_1 exited with code 1
You can also take a look at the logs using docker logs --follow $CONTAINER_NAME
.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.