Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell SmartFabric OS10 User Guide Release 10.5.3

PDF

Containers

Docker-CE allows you to download and install external packages and run them within OS10.

When you start a container, use the --net= option to connect it to a network. This network can access the Management and front-end interfaces. If you do not want networking for your Docker containers, use none.

If you are in the sysadmin group, you can run Docker commands from the OS10 Linux Shell.

Docker-CE restrictions

  • Docker-CE is supported on platforms with at least 16 GB of flash memory.
  • Docker-CE is disabled by default on the system.
  • By default, the dockers that you create have no visibility to the Layer 2 traffic arriving on the data ports.
  • Dell Networking recommends creating containers only with the network type as host or none.
  • Do not create bridge networks using the docker network create command as this configuration can conflict with the OS10 networking capability.
  • Interfaces that are part of nondefault VRFs are not available for Docker-CE containers.
  • Do not use multiple containers simultaneously as this may affect system performance.
  • Do not run CPU intensive Docker containers.

Enable Docker-CE

  • Use the following commands in the OS10 Linux Shell:
    sudo systemctl enable docker
    sudo systemctl start docker
NOTE: When you run the docker run command to create a container, you must use the --net=host parameter.

Install a Docker image

  • To pull the latest Docker image from a Docker hub:
    docker pull nginx

    Or

    docker pull nginx:latest
    NOTE: Docker downloads the latest image if you do not specify the image file name.
  • To pull a Docker image from a private repository:
    docker pull private-repository-URL

View installed local images

  • Use one of the following commands:
    docker images

    Or

    docker image ls

    Or

    docker image inspect node:latest

Remove installed local images

  • Remove the Puppet Agent image:
    docker image rm puppet-agent
  • Remove the nginx image with the latest tag:
    docker image rm nginx:latest

Install and start images

  • Create a container with the latest image in the host network namespace:
    docker run -d --net=host --name mynode node
  • Create a container with the stretch image in the host network namespace:
    docker run -d --net=host --name strnode node:stretch
  • Create a container with the Puppet Agent image in the host network namespace:
    docker run -d --net=host --name mypuppet puppet-agent
  • Start an existing container:
    docker start --name container-name
  • Stop a running existing container:
    docker stop --name container-name
  • Open an interactive terminal inside a container:
    docker exec -it --name container-name

Manage volumes

  • Create a Docker volume:
    docker volume create volume-name
  • Run a Docker in a particular volume mapped to "/work" inside the container:
    docker run -d -it -v workvol1:/work puppet-agent /bin/bash
  • Display details of a volume:
    docker volume inspectvolume-name
  • List all the volumes in the system:
    docker volume ls
  • Remove a volume:
    docker volume rm volume-name

Docker Management

  • List all running Docker containers:
    docker ps
  • List all running and stopped Docker containers:
    docker ps -a
  • Remove a Docker container:
    docker rm container-name
  • Remove a Docker image:
    docker rmi image-name
  • Remove unused Docker images:
    docker image prune
  • Remove unused Docker volumes:
    docker volume prune
  • Remove all unused containers, images, and networks:
    docker system prune
  • Run a Docker container with a certain amount of memory:
    docker run -d --memory="size" container-name
  • Run a Docker container, and restrict its CPU usage:
    docker run -d --cpus="processor-allocation-precentage" container-name

For more information about Docker-CE commands, see the Docker-CE documentation.


Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\