11. CISCO Catalyst 9300 DNA Advantage - Application hosting : CentOS Docker Fail due to verification

Надежный VDS
1 Просмотры
Поддержите сайт и поделитесь материалом в соц.сетях:

Издатель
https://docs.docker.com/engine/install/ubuntu/


Environment
Ubuntu 20.04.1 LTS


#Install Docker
sudo apt update


sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg


echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list } /dev/null


sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io


sudo docker run hello-world


#Download Centos
sudo docker pull centos


#Save Centos
sudo docker save -o centos.tar centos


#copy tar file to C9300
copy ftp: bootflash:


app-hosting appid centos
app-vnic gateway0 virtualportgroup 0 guest-interface 0
guest-ipaddress 192.168.106.11 netmask 255.255.255.0
app-default-gateway 192.168.106.1 guest-interface 0
name-server0 192.168.102.100


app-hosting install appid centos package bootflash:centos.tar


ioxman: app-hosting: Install failed: App/Service descriptor file is missing in package






#Descriptor
https://developer.cisco.com/docs/iox/#!package-descriptor/iox-package-descriptor
https://developer.cisco.com/docs/iox/#!docker-commands/docker-commands
-centos.yaml


descriptor-schema-version: 2.8
info:
name: ubuntu
version: 20.04.1


app:
type: docker
cpuarch: x86_64


resources:
profile: cpu, memory resource profile. Eg., default or c1.tiny or custom


startup:
rootfs: ubuntu.tar
target: command to execute in the container


#ioxclient installation in ubuntu 20.04.1


wget -c https://pubhub.devnetcloud.com/media/iox/docs/artifacts/ioxclient/ioxclient-v1.13.0.0/ioxclient_1.13.0.0_linux_amd64.tar.gz -O - | tar -xz


chmod +x ioxclient
./ioxclient


./ioxclient docker package --skip-signing ./centos.tar ./






#Go to C9300
app-hosting install appid centos package bootflash:package.tar


ioxman: app-hosting: Install failed: Package-Manifest file package.mf is not found in package


#important - after set binary in ftp during upload, now working well


ioxman: app-hosting: Install failed: App signature validation is enabled. App signature file package.cert or package.sign not found in package


app-hosting: Install failed: Invalid Archive file: Could not initialize certificate store




C9300#app-hosting verification disable
Application signature verification is enabled while using bootflash


C9300#show app-hosting infra
App signature verification: enabled


maybe i need to sign with cisco device certificate


okay i can't do anymore for now
Категория
CentOS
Комментариев нет.
Kwork.ru - услуги фрилансеров от 500 руб.