Core Docker commands
This section contains core Docker commands for running containers and pushing images to the Seven Bridges images registry.
Enterprise usersIf you are an Enterprise user i.e. are a member of a Division, please refer to Docker for Enterprise
First make sure Docker is running
- Mac OS 10.10.3 Yosemite or newer: run Docker Desktop for Mac and start a terminal of your choice.
- Mac OS 10.8 Mountain Lion or newer: run Docker Quickstart terminal to start Docker Machine.
- Windows 10: run Docker Desktop for Windows and start a terminal of your choice.
- Windows 7 or 8: run Docker Quickstart Terminal to start Docker Machine.
- Linux: no action required.
If you are using the Seven Bridges Platform on AWS EU, please useeu-images.sbgenomics.comas the image registry instead ofimages.sbgenomics.com.
| Command | Effect |
|---|---|
docker login images.sbgenomics.com | This returns a prompt for your Seven Bridges credentials, and then, if satisfied, gives you access to the Seven Bridges registry. Don't forget to add You can enter your username in the following ways:
|
docker run -ti <image> | This runs a Docker container on your local machine. If you are opening an image from Docker Hub, specify |
docker ps -a | This lists all your Docker containers. |
docker commit <container ID> images.sbgenomics.com/<username>/<repository_name>[:tag] | This takes an image (snapshot) of the container with ID If you are using Enterprise, please follow the Docker for Enterprise image naming convention. |
docker images | This lists all your local Docker images. |
docker tag <image> images.sbgenomics.com/<username>/<repository_name> | This tags the image with a reference to If you are using Enterprise, please follow the Docker for Enterprise image naming convention. |
docker push images.sbgenomics.com/<username>/<repository_name>[:tag] | This uploads your Docker image to the Seven Bridges image registry, so that the tool in it can be used on the Platform. If you are using Enterprise, please follow the Docker for Enterprise image naming convention. |
docker rmi images.sbgenomics.com/<username>/<repository_name>[:tag] | This removes the specified Docker image from your local machine. If you are using Enterprise, please follow the Docker for Enterprise image naming convention. |
docker pull images.sbgenomics.com/<username>/<repository_name>[:tag] | This downloads the specified image from the Seven Bridges registry. If you are using Enterprise, please follow the Docker for Enterprise image naming convention. |
docker logout images.sbgenomics.com | This terminates your connection to the Seven Bridges image registry. |
Updated 12 days ago
